Пример #1
0
 public function delete($id)
 {
     $entity = $this->get($id);
     foreach ($entity->attributes as $index => $attribute) {
         $this->deleteAttribute($attribute);
     }
     parent::delete($id);
 }
Пример #2
0
 public function delete($id)
 {
     return parent::delete($id);
 }