Your first statement (ManyToOne and OneToMany) is correct, the second 
(OneToOne) is not. If the second would be correct, there would maximally 
only be one user in a usergroup. 

It *is *confusing, because in fact the whole concept of ManyToOne belongs 
to the relational paradigm: when looking from the perspective of a 
User-table you can have many users that belong to a usergroup, but when 
looking from the perspective of a (one) User-entity, there is only one 
usergroup it refers to... Your confusion can be seen as a sign that you are 
starting to think in the object paradigm. Congratulations.


On Friday, 28 February 2014 00:04:52 UTC+1, Parsifal wrote:
>
> Sorry i am confused for this, please clarify:
> Each user may belong to one usegroup only. And to each usergroup may 
> belong several users.
> 1) The relationship from user to usergroup is ManyToOne, and from 
> usergroup to user is OneToMany? 
> 2) or this is OneToOne because each user belong to one group?
> I appreciate your clarification.
>  

-- 
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