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