Cake automatically (left) joins over "hasOne" and "belongsTo" relationships, but does not automatically join over "hasMany" and HABTM relationships. Why is this? This was recently discussed in the following thread and a work-around involving rebinding associations to "hasOne" came out, but this is a hack. Why not simply enable support for auto-joins for "hasMany" and HABTM relationships?
http://groups-beta.google.com/group/cake-php/browse_thread/thread/b7bdb9ad670136d4/9d2ea0408d8756a1 At present, associations determine what Cake will splice together when creating the tree of results, but associations do not determine what is joined at query time. What would be ideal is being able to specify joins at query time. This is useful, for example, when table A needs to join to B and B needs to join to C and the results of the entire set are filtered based on fields in A and C. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
