mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-652: DQL with association property doesn't work (Undefined index in SqlWalker.php) #804
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 (Jun 24, 2010).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user jakajancar:
In my model, Users can have many Campaigns, each of which can have many Ads:
Some campaigns do not belong to any user (user is NULL).
When trying to find ads in such campaigns using DQL such as:
I get:
I would expect a LEFT JOIN to be done and campaign.userId IS NULL to be checked in the WHERE condition.
Is this not supported, or am I doing something wrong?
@doctrinebot commented on GitHub (Jun 27, 2010):
Comment created by @beberlei:
First: Is that a typo in your DQL? You write e.campaign.user instead of a.campaign.user.
Can you rewrite the query to:
@doctrinebot commented on GitHub (Jul 5, 2010):
Comment created by jakajancar:
Hi Benjamin,
It's a typo in the bug report, yes, but otherwise it's correct.
The inner join works, but shouldn't my example work too? Or is it not supported at all?
Considering
is supported, i'd really expect
to be too.
@doctrinebot commented on GitHub (Jul 5, 2010):
Comment created by @beberlei:
No, support for multidot or deep path expressions as they are called will be dropped for Beta 4.
@doctrinebot commented on GitHub (Jul 5, 2010):
Issue was closed with resolution "Won't Fix"
@doctrinebot commented on GitHub (Jul 5, 2010):
Comment created by jakajancar:
Ahh, I see. Huge loss :( Thanks for pointing it out.