No no, the only issue is the recursive level.

When you query a model, by default the queries generated also include
that model's direct associations.  So, when you request a Topic you
also get the Posts (one level of association away).  But it doesn't
get the Users for those Posts, because that is two levels away from
the requested model.

If you want to adjust the levels of associations that are retrieved,
set the $recursive attribute of the model being queried.  So in your
case, something like

$this->Topic->recursive = 2;
$this->Topic->read(null, $topic_id);

will find the Topic, all of the Topic's associated Posts, and all of
those Posts' associated Users.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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