I am confused about Doctrine. I have the experience with sql.
I am not sure when to use join, left join methods,..
Example: we have the 3 tables: user, post and comments, and the classic
connections among them...
1) Example
$post = ...->select('p')
->from('Post p')
->getQuery()
->getResult();
If I want an user, I can get it: $post->getUser(); or comments:
$post->getComments();
I do not need next:
$post = ...->select('p')
->from('Post p')
->join('p.user', 'u')
->join('p.comments', 'c')
->getQuery()
->getResult();
I get the same result.
Also I am not sure when I need something like this
->select('p, u, c')...
Can someone help me :)
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/d/optout.