Monday, July 5, 2010

Getting duplicate result when using paginate

I'm doing a paginate query, and it's returning the same row 4 times.
The other results in the set are all present and each is shown once.

Has anyone come across this before?

My Users controller code is as follows:


$this->paginate = array(
'limit' => $limit,
'conditions' => $find
);

$userlist = $this->paginate('User');


and at the point of calling this code, $limit is 34 and debug on $find
gives:

Array
(
[and] => Array
(
[User.synagogue_id] => 1
)

)

Any ideas what I'm doing wrong? The record is definitely not
duplicated in the DB.

Thanks!

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate