Пример #1
0
 public function afterSave()
 {
     if ($this->end_date) {
         $this->removePatientAdherence();
     }
     return parent::afterSave();
 }
Пример #2
0
 protected function afterSave()
 {
     return parent::afterSave();
 }
 protected function afterSave()
 {
     Yii::app()->event->dispatch('OphTrOperationbooking_booking_after_save', array('patient' => $this->operation->event->episode->patient, 'admission_date' => $this->session->date, 'admission_time' => $this->admission_time, 'firm' => $this->session->firm, 'site' => $this->ward->site, 'ward_code' => $this->ward->code, 'theatre_code' => $this->session->theatre ? $this->session->theatre->code : null, 'cancellation_date' => $this->booking_cancellation_date, 'new' => $this->isNewRecord));
     parent::afterSave();
 }