CodeExplorer createProductQuery example
public function search(SearchBundle\Criteria
$criteria, ShopContextInterface
$context) { $query =
$this->queryBuilderFactory->
createProductQuery($criteria,
$context);
$products =
$this->
getProducts($query);
$total = \
count($products);
if ($criteria->
fetchCount()) { $total =
$this->
getTotalCount($query);
} $facets =
$this->
createFacets($criteria,
$context);
return new SearchBundle\
ProductNumberSearchResult($products,
(int) $total,
$facets);
}