Feature request from meng-tian, posted on GitHub Aug 10, 2016
The current implementation of \Magento\Catalog\Model\ProductRepository::getList
does not allow filter products by stores. When specify store_id
filter in $searchCriteria
, an exception throws Invalid attribute name: store_id
.
This pull request adds support for store filtering by using the \Magento\Catalog\Model\ResourceModel\Product\Collection::addStoreFilter
method.