コード例 #1
0
ファイル: Collection.php プロジェクト: zhangjiachao/magento2
 /**
  * Redeclare parent method for store filters applying
  *
  * @return $this
  */
 protected function _beforeLoad()
 {
     parent::_beforeLoad();
     $this->_applyStoresFilterToSelect();
     return $this;
 }
コード例 #2
0
ファイル: Collection.php プロジェクト: Atlis/docker-magento2
 /**
  * Join linked products when specified link model
  *
  * @return $this
  */
 protected function _beforeLoad()
 {
     if ($this->getLinkModel()) {
         $this->_joinLinks();
     }
     return parent::_beforeLoad();
 }