protected function afterFind() { parent::afterFind(); if ($this->is_automated) { $this->automated_source = json_decode($this->automated_source); } }
/** * Add relation to OphTrOperationnote_ProcedureListOperationElement if it exists */ protected function afterFind() { $this->addOpNoteElementRelation(); parent::afterFind(); }
/** * Raise event to allow external data sources to update patient * @see CActiveRecord::afterFind() */ protected function afterFind() { parent::afterFind(); Yii::app()->event->dispatch('patient_after_find', array('patient' => $this)); }
public function afterFind() { // strip out the seconds from the time field foreach (array('start_time', 'end_time') as $time_attr) { $this->{$time_attr} = substr($this->{$time_attr}, 0, 5); } parent::afterFind(); }