/** * @return array|CDbDataReader|mixed */ protected function getExaminationEvent() { if (!$this->examinationEvent) { $this->examinationEvent = $this->command->select('id')->from('event_type')->where('`name` = "Examination"')->queryRow(); $this->command->reset(); } return $this->examinationEvent; }