public function getEventsForPatient(\Patient $patient) { return \Event::model()->getEventsOfTypeForPatient($this->event_type, $patient); }