Skip to content

Commit b732ed4

Browse files
committed
MAGETWO-66360: Update addCategoriesFilter to return #6677
- Merge Pull Request #6677 from maciekpaprocki/magento2:patch-1
2 parents 535860a + 23f2d5c commit b732ed4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/code/Magento/Catalog/Model/ResourceModel/Product/Collection.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -863,6 +863,7 @@ public function addCategoryFilter(\Magento\Catalog\Model\Category $category)
863863
* Filter Product by Categories
864864
*
865865
* @param array $categoriesFilter
866+
* @return $this
866867
*/
867868
public function addCategoriesFilter(array $categoriesFilter)
868869
{
@@ -876,6 +877,7 @@ public function addCategoriesFilter(array $categoriesFilter)
876877
];
877878
$this->getSelect()->where($this->getConnection()->prepareSqlCondition('e.entity_id' , $selectCondition));
878879
}
880+
return $this;
879881
}
880882

881883
/**

0 commit comments

Comments
 (0)