We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4d63b2 commit 78ea8b0Copy full SHA for 78ea8b0
Helper/AclHelperAgent.php
@@ -88,11 +88,13 @@ public function findBy(
88
;
89
90
if (!empty($criteria)) {
91
- $predicates = [];
+ $predicates = $builder->expr()->andX();
92
foreach ($criteria as $field => $criterion) {
93
- $predicates[] = is_array($criterion)
+ $predicates->add(
94
+ is_array($criterion)
95
? $builder->expr()->in("e,$field", ":$field")
- : $builder->expr()->eq("e.$field", ":$field");
96
+ : $builder->expr()->eq("e.$field", ":$field")
97
+ );
98
$builder->setParameter(":$field", $criterion);
99
}
100
0 commit comments