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(); }
public function relations() { return array_merge(parent::relations(), array('entity' => array(self::BELONGS_TO, self::TYPE_OF_BLOCK, 'entity_id'))); }