Hi
I have problem with pagination. I have three models User hasOne Staff,
and JobTitle hasOne Staff. I would like to create a pagination in
StaffsController. I can retrieve data from User and Staff but there is
problem with retrieving data form JobTitle.

I tried to do it like that

var $paginate = array(
        'limit' => 20,
        'order' => array(
            'User.surname' => 'asc'
        ),
        'conditions' => array(
                        'User.status > 1'
        ),
        'contain' => array('JobTitle' => array('Staff'))
  );

But 'contain' is not working. How should I solve this problem?
-- 
Domos

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to