コード例 #1
0
ファイル: Collection.php プロジェクト: aiesh/magento2
 /**
  * Add entity filter
  *
  * @return $this
  */
 public function _initSelect()
 {
     parent::_initSelect();
     $this->addEntityFilter($this->_coreRegistry->registry('entityId'));
     return $this;
 }
コード例 #2
0
ファイル: CollectionTest.php プロジェクト: nja78/magento2
 public function testSetStoreFilter()
 {
     $this->collection->setStoreFilter(1);
 }