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