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 98fc767 commit 1c49c8fCopy full SHA for 1c49c8f
src/Model/Behavior/BitmaskedBehavior.php
@@ -4,6 +4,7 @@
4
5
use ArrayObject;
6
use Cake\Database\Expression\Comparison;
7
+use Cake\Database\Expression\ComparisonExpression;
8
use Cake\Datasource\EntityInterface;
9
use Cake\Event\EventInterface;
10
use Cake\ORM\Behavior;
@@ -248,7 +249,7 @@ public function encodeBitmaskConditions(Query $query) {
248
249
}
250
251
$callable = function ($comparison) use ($field, $mappedField) {
- if (!$comparison instanceof Comparison) {
252
+ if (!$comparison instanceof Comparison && !$comparison instanceof ComparisonExpression) {
253
return $comparison;
254
255
$key = $comparison->getField();
0 commit comments