/** * Initialize relation columns and relation table name * * @param array $args */ public function __construct(array $args) { parent::__construct($args); $this->_relationColumns = array('product_id', 'store_id', 'url_rewrite_id'); $this->_relationTableName = $this->_getTable('enterprise_catalog/product'); }
/** * Initialize unique value, relation columns and relation * * @param array $args */ public function __construct(array $args = array()) { parent::__construct($args); $this->_urlResource = $this->_factory->getResourceModel('catalog/url'); $this->_relationColumns = array('category_id', 'store_id', 'url_rewrite_id'); $this->_relationTableName = $this->_getTable('enterprise_catalog/category'); $this->_eavHelper = !empty($args['eavHelper']) ? $args['eavHelper'] : Mage::getResourceHelper('eav'); $this->_urlModel = $this->_factory->getModel('catalog/url'); $this->_category = $this->_factory->getModel('catalog/category', array('disable_flat' => true)); $this->_stores = !empty($args['storeList']) ? $args['storeList'] : Mage::app()->getStores(); $this->_categoryRelation = $this->_factory->getModel('enterprise_catalog/category'); }
/** * Initialize unique value, relation columns and relation * * @param array $args */ public function __construct(array $args) { parent::__construct($args); $this->_relationColumns = array('redirect_id', 'url_rewrite_id'); $this->_relationTableName = $this->_getTable('enterprise_urlrewrite/redirect_rewrite'); }