mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-2590: Class inheritance - left join between child and parent entities #3253
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 6, 2013).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user darthcz:
The piece of code given under creates wrong sql to me.
Module is parent entity for BusinessModule entity. Category is joined with BusinessModule.
Module entity is only left joined to its child entity and that's the problem because it contains a field "name" used for filtering. So even if there is no module having the name, categories are still included.
I need the parent entity to be inner joined to child entity not left joined.
File
doctrine2/lib/Doctrine/ORM/Query/SqlWalker.phpline 353:@doctrinebot commented on GitHub (Nov 6, 2013):
Comment created by maryo:
I am experiencing the same issue. The workarround could be to use LEFT JOIN with IS NOT NULL condition... But it also doesnt work after this commit
d9c1782a4f(i had to revert to dev-master#13c1efb240dd0af25ad0abe230df98ec895892c7)