mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-739: DQL generates wrong SQL if id column has other name #911
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 (Aug 9, 2010).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user musuk:
I created many to many relation User <-> Group same as CmsUser and CmsGroup in test.
But by User class has another definition for ID column:
My DQL is:
It generates wrong sql:
As you see g0_. has ho id column.
If I removes name="Id" from id column definition
all works fine and generated sql is:
@doctrinebot commented on GitHub (Aug 11, 2010):
Comment created by @guilhermeblanco:
Assigning to me
@doctrinebot commented on GitHub (Aug 11, 2010):
Comment created by @guilhermeblanco:
Please public your Group and User mappings... I have tested here and could not reproduce the issue.
Cheers,
@doctrinebot commented on GitHub (Aug 15, 2010):
Comment created by @beberlei:
This is probably a bug on the other side missing a correct @joinColumn annotation?
@doctrinebot commented on GitHub (Aug 30, 2010):
Comment created by romanb:
We need a complete (failing) unit test in order to proceed on this. Scheduling for RC1.
@doctrinebot commented on GitHub (Sep 15, 2010):
Comment created by @beberlei:
This is for sure an error in the @joinColumn specification (or no @joinColumn at all) i close this issue until further feedback is given.
@doctrinebot commented on GitHub (Sep 15, 2010):
Issue was closed with resolution "Cannot Reproduce"