Is this possible?
$this->paginate['Model1'] = array(
'contain' => array(
'Model2' => array(
'Model3',
'Model4'
)
),
'conditions' => $conditions
);
$rows = $this->paginate('Model1');
And if it is why is my code not working?
Model2 belongs to Model1
Model3 and Model4 belong to Model2
The SQL produced has a LEFT JOIN for Model2, but nothing for Model3
and Model4.
Thanks in advance
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment