mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-3743: There is a BC break in the ORM 2.5 in the DQL parser #4592
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 (May 22, 2015).
Originally assigned to: @guilhermeblanco on GitHub.
Jira issue originally created by user stof:
The following DQL query is working fine on 2.4 but breaks on 2.5:
This is the exception triggered in 2.5:
The exception happens in
Parser->processDeferredPathExpressions.The Liker class has a compound identifier based on 2 relations.
I suspect it is related to https://github.com/doctrine/doctrine2/pull/1122
@doctrinebot commented on GitHub (May 22, 2015):
Comment created by stof:
I'm not sure it is a BC break though. Looking at the SQL generated in 2.4, it was not counting the right thing (is was counting only the message ids, not the combination message id/user id being the primary key.
@doctrinebot commented on GitHub (May 28, 2015):
Comment created by stof:
Actually, it was counting the right thing when not using DISTINCT (the 2.4 generated SQL was broken for DISTINCT though)
@doctrinebot commented on GitHub (May 28, 2015):
Comment created by @guilhermeblanco:
Yep, that PR was the culript. I can look into this issue later.