Could you expand the example to include how your example to explain how you
are constructing your objects and what expectation is failing?

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/


On 1 February 2014 22:32, korso3 <[email protected]> wrote:

> Hi,
>
> I have two problems with one-to-one relationship.
>
> Here is my code example: https://gist.github.com/perajovic/8759109.
>
> 1. When I try to save with creator code user_id in invitations table is
> saved as null. User entity is saved as expected. Why invitations.user_id is
> not populated with user_id from that last transaction?
>
> 2. When I try to load from db (finder code example) I get LEFT JOIN query.
> Because it is one-to-one I thinks it should be INNER JOIN, and also because
> it is EXTRA_LAZY set, I think that JOIN shouldn't be fired -- as I
> understand Invitation proxy should be generated and new query will be
> triggered when I try to access it.
>
> Any ideas about these issues?
>
> --
> You received this message because you are subscribed to the Google Groups
> "doctrine-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/doctrine-user.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to