In two cases below you described, the first case is the one I actually want
to. And actually it is working fine with expected result. The only odd
thing is that print("blah") in constructor doesn't print so I assume the
constructor is not working however I am still getting correct result!
Second odd thing is that only getArrayResult returns something for this but
I get error for getResult. Let's look at second problem later but first
let's check why constructor is not working however I am still getting
correct result?! Any idea?

1) In a Module-entity you can have multiple ModuleConfig-entities and every
ModuleConfig-entity only has 1 Module. In this case you'll have a
$moduleConfigs collection in a Module on which a OneToMany-relationship is
defined. In a ModuleConfig you then have a $module defined with a ManyToOne
relation.
2) Or: in a Module-entity you can only have 1 ModuleConfig-entity, but a
ModuleConfig-entity can be associated with multiple Module-entities.  In
that case you'll have a $moduleConfig propery in a Module on which a
ManyToOne-relationship is defined. In a ModuleConfig you then have a
$modules collection defined with a OneToMany relation.

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