$builder->
setParameters([ 'defaultCustomerGroup' => self::DEFAULT_CUSTOMER_GROUP,
'customerGroup' =>
$customerGroupKey,
'quantity' => self::DEFAULT_PRODUCT_QUANTITY,
'placeholderUpTo' => self::PLACEHOLDER_UP_TO,
]);
foreach ($this->
Request()->
getParam('filter',
[]) as $filter) { if ($filter['property'
] === 'free'
) { $builder->
andWhere( $builder->
expr()->
or( 'details.ordernumber LIKE :free',
'product.name LIKE :free',
'supplier.name LIKE :free'
) );
$builder->
setParameter(':free',
$filter['value'
]);
} } $builder->
setFirstResult($this->
Request()->
getParam('start'
)) ->
setMaxResults($this->
Request()->
getParam('limit'
))