示例#1
0
 public function afterSave($insert, $changedAttributes)
 {
     parent::afterSave($insert, $changedAttributes);
     if ($insert) {
         // if Participant is added
         // add MeetingPlaceChoice & MeetingTimeChoice this participant
         $mt = new MeetingTime();
         $mt->addChoices($this->meeting_id, $this->participant_id);
         $mp = new MeetingPlace();
         $mp->addChoices($this->meeting_id, $this->participant_id);
     }
 }