Skip to content

Commit

Permalink
#14 when no where filter is used, don't apply
Browse files Browse the repository at this point in the history
- corrected check for empty or
  • Loading branch information
metaclass-nl committed Sep 20, 2022
1 parent b18e410 commit d8c6d7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Filter/FilterLogic.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public function generateExpressions(QueryBuilder $queryBuilder, QueryNameGenerat
protected function doGenerate($queryBuilder, $queryNameGenerator, $resourceClass, $operationName, $context)
{
if (empty($context['filters'])) {
return;
return [];
}
$oldWhere = $queryBuilder->getDQLPart('where');

Expand Down

0 comments on commit d8c6d7c

Please sign in to comment.