I did set my Modules entity as OneToMany with my ModulesConfig entity and 
in my Modules entity I did set the constructor as below since this is 
OneToMany.
I see both with and without this constructor it works fine, I even did use
var_dump($this->ModulesConfig); and also print("blah") within constructor 
and nothing printed, am I doing some mistake in my class below? (However I 
don't get any error and it still works but curious to know.)
class Modules {
               public function __construct() {
                       $this->ModulesConfig = new ArrayCollection();
                       print("blah");
               }
               public static function loadMetadata(ClassMetadata $metadata) 
{

 

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