On Tuesday, 4 March 2014 08:39:44 UTC+1, Herman Peeren wrote:
>
> about what I think about your model; for the entities and tables don't 
> necessarily are the same. 
>

Your word_translations table is a n:n-coupling-table between  2 Word-items. 
You don't need a WordTranslations-entity (you can make that extra entity, 
but you normally only do so when extra attributes are added to the coupling 
table, as for instance in the case of a JobContract between 
Emplyee-entities and Company-entities. In that case you split the 
ManyToMany association in two OneToMany/ManyToOne associations).

So you have a Word-entity, that has attributes $type (= a WordType 
value-object) and $translations (= a collection of other Word-entities). 
And you have a WordType-entity (for the different values a wordtype can 
have). No need for a third entity. 

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