mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-177: Throw exception if ON/WITH join condition override/extension is used on a fetch-join with HYDRATE_OBJECT #217
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 (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.
@doctrinebot commented on GitHub (Nov 26, 2009):
@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 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):
Issue was closed with resolution "Fixed"