954,585 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Group by condition in Pagination in cakephp

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

arunajasmine
Newbie Poster
18 posts since Jul 2009
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: