예제 #1
0
 /**
  * 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();
 }
예제 #2
0
 public function _construct()
 {
     parent::_construct();
     $this->_init('onsale/rule');
     $this->addWebsitesToResult();
 }