I'm trying to get a List of posts and the number of related comments.
Using find('count') for each post is unelegant and adds unnecessary
overhead, and I don't want to add a new field to the database to use
counterCache.
Is there any way to solve this with cakePHP under these conditions?
Using sql it would be just a "join" with a "group by"... I'm new to
all these ORM problems (and solutions).
Thank you.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to