Skip to content

Commit

Permalink
Update addCategoriesFilter to return $this
Browse files Browse the repository at this point in the history
To keep consistency addCategoriesFilter should return $this. All Other methods seems to use fluent API.
  • Loading branch information
maciekpaprocki authored Sep 20, 2016
1 parent 73bf648 commit 23f2d5c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,7 @@ public function addCategoryFilter(\Magento\Catalog\Model\Category $category)
* Filter Product by Categories
*
* @param array $categoriesFilter
* @return $this
*/
public function addCategoriesFilter(array $categoriesFilter)
{
Expand All @@ -865,6 +866,7 @@ public function addCategoriesFilter(array $categoriesFilter)
];
$this->getSelect()->where($this->getConnection()->prepareSqlCondition('e.entity_id' , $selectCondition));
}
return $this;
}

/**
Expand Down

0 comments on commit 23f2d5c

Please sign in to comment.