Skip to content

Commit

Permalink
Add MEMBER_OF comparison to queryExpressionVisitor
Browse files Browse the repository at this point in the history
  • Loading branch information
Smartel1 committed Jun 7, 2019
1 parent 0b5be00 commit 710936b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Doctrine/ORM/Query/QueryExpressionVisitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 710936b

Please sign in to comment.