Can any one tell me how to use pagination with relationship.

for e.g

    $locArray = array(
                'hasOne'=>array
                ('profile'=>array('className'=>'Profile' ,
                'dependent'    =>'true',
                'foreignKey' => 'pro_id')));


    $this->User->bindModel($locArray);

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

its giving me only User data and not the related model with it. How can i
get both of them?

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