Made a Gist. Here it is: https://gist.github.com/tvazmaciel/2fa42472a2ad88df8a6efda4ab921b7f.
What I'm trying to do is, instead of using one named native query to retrieve all attribute values, use the User->q1 query to fetch its primitive attributes and make it call the Phone->q1 query to fetch the Phone object to the $phone atribute. I want each entity to be responsible for knowing where to get its stuff. User has am id, a name and a Phone. So it should get the id, the name, and call Phone and ask for the Phone that has a specific phone_id. See what I mean? Bottom line is I think an entity querying for another entity's attributes breaks encapsulation. =) Thanks for the help. -- 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 https://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/d/optout.
