Hi,
i am trying to use the pagination concept in Cakephp for my application ..
$allreports=$this->paginate('Report',array('Report.user_id'=>$userId));
i am trying to have a group condition in the above query like 'group'=>array("Report.report_id") .. i m not awarre of giving that in this paginate..
where in
var $paginate = array( 'limit' => 5, 'order' => array( 'Report.report_id' => 'desc' ) );
where to place this group condition for the pagination to work..