コード例 #1
0
ファイル: Collection.php プロジェクト: zhangjiachao/magento2
 /**
  * Set Store scope for collection
  *
  * @param mixed $store
  * @return $this
  */
 public function setStore($store)
 {
     parent::setStore($store);
     if ($this->isEnabledFlat()) {
         $this->getEntity()->setStoreId($this->getStoreId());
     }
     return $this;
 }