I am newbie in doctrine (and advance in cakephp)
I have “users” hasMany “projects” hasMany “tasks”, how get users and related tasks without write the “->joins()”?
Thanks,
Celso
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you have properly did all the mappings, then you don’t have to use the join. You can just call.
$users->getProjects();and loop through the projects and get$projects->getTasks();. There won’t be any direct relation b/w users and tasks.