mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-728: Inherited (JOINED) associations referred on DQL on owning side doesn't refer to correct table column #897
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 (Jul 30, 2010).
Originally assigned to: @guilhermeblanco on GitHub.
Jira issue originally created by user @guilhermeblanco:
Based on code instrospection, it seems that SQL generated is wrong when you attempt to do something like this:
It seems the column that refers to the association points to wrong table (apparently it points to CompanyManager table).
If everything works, we still need to have coverage to it (we have none).
@doctrinebot commented on GitHub (Aug 7, 2010):
Comment created by romanb:
The first thing we need is tests to verify the issue.
@doctrinebot commented on GitHub (Aug 8, 2010):
Comment created by @beberlei:
I added a test to show that it works and no issue occours:
Its in Doctrine/Tests/ORM/Functional/ClassTableInheritanceTest.php, see commit:
dcebc241b4@doctrinebot commented on GitHub (Aug 9, 2010):
Comment created by @guilhermeblanco:
I think I fixed it sometime... it was missing a condition that is now present.
Fixed. =)
@doctrinebot commented on GitHub (Aug 9, 2010):
Issue was closed with resolution "Fixed"