public function relations()
{
// NOTE: you may need to adjust the relation name and the related
// class name for the relations automatically generated below.
return array('events' => array(self::HAS_MANY, 'Event', 'event_type_id'), 'elementTypes' => array(self::HAS_MANY, 'ElementType', 'event_type_id'));
}