mirror of
https://github.com/doctrine/orm.git
synced 2026-04-25 15:38:10 +02:00
DDC-581: Unable to use single value association with IN expression #714
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 11, 2010).
Originally assigned to: @guilhermeblanco on GitHub.
Jira issue originally created by user 7heaven:
DQL doesn't allow to use Single Value Association with IN expression.
According to documentation:
I think it should be like that:
Suggested solution:
Edit
Parser::inExpressionmethod to accept SingleValuedPathExpressions:Test case:
Without this change It's impossible to select entities having specified association by a subquery with no additional join.
Now this could be done with this DQL:
But it requires to join
addressestable foru.address.idfield, which in fact is redundant and ineffective.Tried to find similar issues or feature requests but no results. So I posted it here.