Skip to content

Loading…

DDC-1714: Prevent inverse side lazy loading owning side of the oneToOne relationsip if owning side's id is an assosiationKey of inversed side #2364

Open
doctrinebot opened this Issue · 1 comment

2 participants

@doctrinebot

Jira issue originally created by user dwalter:

This issue was originally discussed in http://www.doctrine-project.org/jira/browse/[DDC-357](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

Comment created by @doctrinebot:

A related Github Pull-Request [GH-970] was closed:
#970

@beberlei beberlei was assigned by doctrinebot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.