Example #1
0
 /**
  * Join linked products when specified link model
  *
  * @return $this
  */
 protected function _beforeLoad()
 {
     if ($this->getLinkModel()) {
         $this->_joinLinks();
         $this->joinProductsToLinks();
     }
     return parent::_beforeLoad();
 }
 /**
  * Redeclare parent method for store filters applying
  *
  * @return $this
  */
 protected function _beforeLoad()
 {
     parent::_beforeLoad();
     $this->_applyStoresFilterToSelect();
     return $this;
 }