Esempio n. 1
0
 /**
  * @param GalleryImage $image
  */
 private function manageFileUpload(GalleryImage $image)
 {
     if ($image->getFile()) {
         $image->refreshUpdated();
     }
 }
Esempio n. 2
0
 /**
  * @param GalleryImage $image
  */
 protected function addYearIfNotSet(GalleryImage $image)
 {
     if ($image->getYear()) {
         $image->setYear($this->getYear());
     }
 }