protected function determineEventType()
{
$module_class = $this->getModuleClass();
if (!($event_type = \EventType::model()->find('class_name=?', array($module_class)))) {
throw new \Exception("Module is not migrated: {$module_class}");
}
return $event_type;
}