Hello everybody, I am studying mongodb using Symfony2. I tried to reference some objects inside each other using ReferenceMany.
I state that almost everything works, I can insert objects and extract them, the only thing that I can not do is retrieve the encapsulated objects , I do not understand why. http://paste.ubuntu.com/7033041/ http://paste.ubuntu.com/7033055/ I can insert objects easily doing so, I have a graphical feedback of everything that happens because I use phpmoadmin to check. http://paste.ubuntu.com/7033058/ To find datas I do so: http://paste.ubuntu.com/7033061/ The main problem is that the function ->getProva() return an empty array If I check ot the database using phpMoAdmin, I have this http://paste.ubuntu.com/7033062/ Using my code I have this: http://paste.ubuntu.com/7033066/ Unfortunately I cannot figure out how to find referenced objects. In the documentation I found on line, I read that you have just to call the function ->getProva() But it returns an empty array. Some idea where is my mistake? Thanks -- 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.
