예제 #1
0
 public function afterDelete()
 {
     parent::afterDelete();
     foreach ($this->getItems()->all() as $item) {
         $item->delete();
     }
 }
예제 #2
0
 public function afterDelete()
 {
     parent::afterDelete();
     foreach ($this->getPhotos()->all() as $photo) {
         $photo->delete();
     }
 }