diff --git a/lib/Doctrine/ORM/Query/Parser.php b/lib/Doctrine/ORM/Query/Parser.php index 0d56b8510..cb70099f4 100644 --- a/lib/Doctrine/ORM/Query/Parser.php +++ b/lib/Doctrine/ORM/Query/Parser.php @@ -1719,9 +1719,8 @@ class Parser $condPrimary->simpleConditionalExpression = $this->SimpleConditionalExpression(); } else { $this->match('('); - $conditionalExpression = $this->ConditionalExpression(); + $condPrimary->conditionalExpression = $this->ConditionalExpression(); $this->match(')'); - $condPrimary->conditionalExpression = $conditionalExpression; } } else { $condPrimary->simpleConditionalExpression = $this->SimpleConditionalExpression();