From 710936b82f0fd4edb32629122d924e22389eb4a2 Mon Sep 17 00:00:00 2001 From: drews Date: Fri, 7 Jun 2019 11:01:14 +0500 Subject: [PATCH] Add MEMBER_OF comparison to queryExpressionVisitor --- lib/Doctrine/ORM/Query/QueryExpressionVisitor.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Doctrine/ORM/Query/QueryExpressionVisitor.php b/lib/Doctrine/ORM/Query/QueryExpressionVisitor.php index 8b00d998ea..0381ac037d 100644 --- a/lib/Doctrine/ORM/Query/QueryExpressionVisitor.php +++ b/lib/Doctrine/ORM/Query/QueryExpressionVisitor.php @@ -186,6 +186,8 @@ public function walkComparison(Comparison $comparison) $this->parameters[] = $parameter; return $this->expr->like($field, $placeholder); + case Comparison::MEMBER_OF: + return $this->expr->isMemberOf($comparison->getField(), $comparison->getValue()->getValue()); case Comparison::STARTS_WITH: $parameter->setValue($parameter->getValue() . '%', $parameter->getType()); $this->parameters[] = $parameter;