예제 #1
0
파일: Photo.php 프로젝트: eyeem/php-wrapper
 public function delete()
 {
     $this->getUser()->getPhotos()->flush();
     foreach ($this->getAlbums() as $album) {
         $album->getPhotos()->flush();
     }
     foreach ($this->getLikers() as $liker) {
         $liker->getLikedPhotos()->flush();
     }
     return parent::delete();
 }
예제 #2
0
 public function delete()
 {
     $this->getPhoto()->getComments()->flush();
     return parent::delete();
 }