From 96fb0d7e1429d6afafe0dde3ed6ccc502e7c9cc1 Mon Sep 17 00:00:00 2001 From: Brad Sahlhoff Date: Tue, 19 Nov 2013 11:09:23 -0500 Subject: [PATCH] Changed logic to allow joining games, and becoming friends Added Spacing --- 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 d01aafa81..5ac27be70 100644 --- a/lib/Doctrine/ORM/Query/QueryExpressionVisitor.php +++ b/lib/Doctrine/ORM/Query/QueryExpressionVisitor.php @@ -127,12 +127,14 @@ class QueryExpressionVisitor extends ExpressionVisitor public function walkComparison(Comparison $comparison) { $parameterName = str_replace('.', '_', $comparison->getField()); + foreach($this->parameters as $parameter) { if($parameter->getName() === $parameterName) { $parameterName .= '_' . count($this->parameters); break; } } + $parameter = new Parameter($parameterName, $this->walkValue($comparison->getValue())); $placeholder = ':' . $parameterName;