On 16 Jul., 10:44, Miles J <[email protected]> wrote:
> Do you have a $paginate property in your controller? You should place
> the group within the model within the $paginate.

Sorry for the late answer. Yes, there's $paginate in the controller:

var $paginate = array(
            'limit' => 10,
            'order' => array('News.created' => 'desc')
);

Could you help me with the group by?

The result should be a table having all news-columns and a additional
column with the number of comments related to this news-entry.
--~--~---------~--~----~------------~-------~--~----~
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