public function relations() { return array('mediatype' => array(self::BELONGS_TO, 'MediaType', 'media_type_id')); }