mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-1237: Where clause grouping changed for 2.1 #1557
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Jun 29, 2011).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user mridgway:
Running through our tests for a project with the dev releases of Doctrine 2.1 we noticed some differences in the queries that were generated using the query builder.
The thing that is breaking our queries is the where clauses are not grouped any more. Before there were parentheses wrapping each where clause and now they are not. So in our case when we have an OR statement in a where and then we add another AND, they match up incorrectly.
The query builder looks like this:
Prior to RC1 the generated DQL look like this:
After RC1 it looks like this:
@doctrinebot commented on GitHub (Jun 29, 2011):
Comment created by mridgway:
Changed resulting queries to DQL instead of SQL, since that is where the parentheses are changed.
@doctrinebot commented on GitHub (Jul 3, 2011):
Comment created by @guilhermeblanco:
Fixed.
@doctrinebot commented on GitHub (Jul 3, 2011):
Issue was closed with resolution "Fixed"
@doctrinebot commented on GitHub (Jul 17, 2011):
Comment created by daveyand:
I'm still getting this aswell.
I'm working with Version: 2.1.0 [ Taken from Doctrine/ORM/Version.php ]
Although The Version within DBAL is: 2.1.0-DEV [ Taken from Doctrine/DBAL/Version.php ]