We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7a09d4b + b9eed6e commit 87ae772Copy full SHA for 87ae772
1 file changed
Classes/Doctrine/ExtraLazyPersistentCollection.php
@@ -91,10 +91,13 @@ protected function getCriteria(): Criteria
91
$cloneData[$getter] = array_filter($cloneData[$getter]);
92
}
93
94
+ $getWhereExpression = match(count($cloneData['getWhereExpression'])) {
95
+ 0 => null,
96
+ 1 => array_shift($cloneData['getWhereExpression']),
97
+ default => Criteria::expr()->andX(... $cloneData['getWhereExpression'])
98
+ };
99
return new Criteria(
- $cloneData['getWhereExpression']
- ? Criteria::expr()->andX(... $cloneData['getWhereExpression'])
- : null,
100
+ $getWhereExpression,
101
array_shift($cloneData['getOrderings']),
102
array_shift($cloneData['getFirstResult']),
103
array_shift($cloneData['getMaxResults'])
0 commit comments