Beispiel #1
0
 /**
  * @param Picture $picture
  * @param array $data
  */
 protected function preSave(Picture $picture, array $data)
 {
     // set uploader
     $user = $this->getServiceContainer()->getAuthManager()->getUser();
     $picture->setUploaderId($user->getId());
     $this->isNew = $picture->isNew();
 }