Ejemplo n.º 1
0
 public function afterSave($insert, $changedAttributes)
 {
     parent::afterSave($insert, $changedAttributes);
     if ($insert) {
         // if MeetingPlace is added
         // add MeetingPlaceChoice for owner and participants
         $mpc = new MeetingPlaceChoice();
         $mpc->addForNewMeetingPlace($this->meeting_id, $this->suggested_by, $this->id);
     }
 }