Good day! So, I have the next tables: projects users projects_users
Project hasAndBelongsToMany User User hasAndBelongsToMany Project ProjectsUser belongsTo User ProjectsUser belongsTo Project Here is code all of models: https://gist.github.com/734531 So, when I am trying to do the next query: https://gist.github.com/734540 Cake generates the next SQL queries: https://gist.github.com/734533 You can see that queries between User and Project are separated but relations are set in models. Also you can see that belongsTo relations between ProjectsStatus and ProjectsError to Project model are executed successfully as joining this tables in the first query. The commented line in code show what I want. So, the question is: Why Cake not automatically joins my HABTM relations between Project and User and how to do it? It I use the 'joins' => array() all is work, but I want it be done automatically. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
