protected function getElement($class_name) { return $class_name::model()->findByAttributes(array('event_id' => $this->event->id)); }