DDC-177: Throw exception if ON/WITH join condition override/extension is used on a fetch-join with HYDRATE_OBJECT #217

Closed
opened 2026-01-22 12:31:04 +01:00 by admin · 4 comments
Owner

Originally created by @doctrinebot on GitHub (Nov 26, 2009).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user romanb:

Allowing to override the join condition of an association should be forbidden when objects are fetched and the association is fetch-joined since this would completely destroy the meaning of the association (it can be changed on a per-query basis) and quickly result in unwanted behavior when flush() is called and there were modifications.

Originally created by @doctrinebot on GitHub (Nov 26, 2009). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user romanb: Allowing to override the join condition of an association should be forbidden when objects are fetched and the association is fetch-joined since this would completely destroy the meaning of the association (it can be changed on a per-query basis) and quickly result in unwanted behavior when flush() is called and there were modifications.
admin added the Improvement label 2026-01-22 12:31:04 +01:00
admin closed this issue 2026-01-22 12:31:05 +01:00
Author
Owner

@doctrinebot commented on GitHub (Nov 26, 2009):

@doctrinebot commented on GitHub (Nov 26, 2009): - is referenced by [DDC-135: With/on extra join clauses are not yet processed properly by SqlWalker](http://www.doctrine-project.org/jira/browse/DDC-135) - is referenced by [DDC-176: Query::iterate is broken when using JOIN](http://www.doctrine-project.org/jira/browse/DDC-176)
Author
Owner

@doctrinebot commented on GitHub (Feb 13, 2010):

Comment created by @beberlei:

DDC-135 has a patch attached that adresses this issue too.

@doctrinebot commented on GitHub (Feb 13, 2010): Comment created by @beberlei: [DDC-135](http://www.doctrine-project.org/jira/browse/DDC-135) has a patch attached that adresses this issue too.
Author
Owner

@doctrinebot commented on GitHub (Feb 14, 2010):

Comment created by @beberlei:

The USE of an ON clause to overwrite the join conditions is disallowed.

I think if you would want to join related entities and fiddle with the associations you would have to match them using fields and the FROM clause and dont be allowed to do it via "JOIN".

@doctrinebot commented on GitHub (Feb 14, 2010): Comment created by @beberlei: The USE of an ON clause to overwrite the join conditions is disallowed. I think if you would want to join related entities and fiddle with the associations you would have to match them using fields and the FROM clause and dont be allowed to do it via "JOIN".
Author
Owner

@doctrinebot commented on GitHub (Feb 14, 2010):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Feb 14, 2010): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#217