When I try:
// Removed the limit to ensure that all of the group notes items can be found and collapsed
$recent_notes = $this->User->Note->find('all', array(
'recursive' => 2,
'order' => 'Note.created DESC',
'conditions' => $conditions,
'contains' => array(
'NotesUser', 'Poster', 'Comment' => array('Poster')
)
));
It does not limit the output whatsoever - I get every related model. However, when I don't specify recursive
as 2
, or if I specify it as 1
, I am missing the Comment=>Poster
model.
How can I get only the models I need? Thanks!