protected function getEventType() { if (!isset($this->event_type)) { $this->event_type = \EventType::model()->findByAttributes(array('class_name' => 'OphCoCvi')); } return $this->event_type; }