/** * Constructor */ protected function _construct() { if ($this->getVersionHelper()->isGe1700()) { $this->_associatedEntitiesMap['store'] = array('associations_table' => 'catalogrule/store', 'rule_id_field' => 'rule_id', 'entity_id_field' => 'store_id'); } parent::_construct(); }
public function _construct() { parent::_construct(); $this->_init('onsale/rule'); $this->addWebsitesToResult(); }