Details
Description
When I executed the following DQL, I get an error.
> php scripts/doctrine.php orm:run-dql "select o from OrderDetail o where (o.price + o.tax) * o.count > 10000"
[Doctrine\ORM\Query\QueryException]
[Syntax Error] line 0, col 69: Error: Expected =, <, <=, <>, >, >=, !=, got ')'
When I swap the left-hand expression and right-hand one, no error occurs.
> php scripts/doctrine.php orm:run-dql "select o from OrderDetail o where 10000 < (o.price + o.tax) * o.count"
array
empty
This issue is referenced in Github Pull-Request GH-233
https://github.com/doctrine/doctrine2/pull/233