mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-1714: Prevent inverse side lazy loading owning side of the oneToOne relationsip if owning side's id is an assosiationKey of inversed side #2159
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 (Mar 18, 2012).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user dwalter:
This issue was originally discussed in http://www.doctrine-project.org/jira/browse/DDC-357
Say there is User and UserData with oneToOne bidirectional relationship. When we fetch User objects, UserData is lazy loaded right away.
If we were to set UserData 's id as asssosiationKey of User, then user_id becomes the id of UserData and User object can already know that UserData owning side's id will equal it's own User->id.
Can this be implemented?
@doctrinebot commented on GitHub (Mar 23, 2014):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-970] was closed:
https://github.com/doctrine/doctrine2/pull/970