コード例 #1
0
 protected function onBeforeDelete()
 {
     parent::onBeforeDelete();
     foreach ($this->Answers() as $answer) {
         $answer->delete();
     }
 }
コード例 #2
0
 protected function onBeforeDelete()
 {
     parent::onBeforeDelete();
     foreach ($this->EntitySurveys() as $entities) {
         $entities->delete();
     }
 }