Пример #1
0
 protected function onBeforeDelete()
 {
     parent::onBeforeDelete();
     foreach ($this->Floors() as $e) {
         $e->delete();
     }
     foreach ($this->Rooms() as $e) {
         $e->delete();
     }
 }