Magento 2
How to filter an EAV or a flat collection (product, category, sales, etc.) with the addAttributeToFilter() method?
Development
category-collection
,
eav
,
filter
,
collection-filter
,
sales-collection
,
collection
,
eav-collection
,
db-collection
,
product-collection
dmitrii_fediuk
(Dmitrii Fediuk)
April 14, 2016, 9:31am
1
Context:
How to filter a database collection?
1.
\Magento\Catalog\Model\ResourceModel\AbstractCollection::addAttributeToFilter()
2.
\Magento\Catalog\Model\ResourceModel\Category\Flat\Collection::addAttributeToFilter()
3.
\Magento\Catalog\Model\ResourceModel\Product\Collection::addAttributeToFilter()
4.
\Magento\Eav\Model\Entity\Collection\AbstractCollection::addAttributeToFilter()
5.
\Magento\Sales\Model\ResourceModel\Collection\AbstractCollection::addAttributeToFilter()
Usages
1
2
3
4
5
6
7
8
9
10
11
How to filter a database collection?
How to filter a database collection with the addFieldToFilter() method?
How to get a custom attribute directly by name without product id?
dmitrii_fediuk
(Dmitrii Fediuk)
April 14, 2016, 10:12am
2
See also:
How to filter a database collection with the
addFieldToFilter()
method?