got it working with:

$this->Forum->recursive = 3;
$this->Forum->useModel(array('Forum', 'ForumTopics', 'ForumLastPost',  
'ForumCategory'));
$this->Forum->ForumCategory->useModel(array('ForumCategory'));
$this->Forum->ForumLastPost->User->useModel(array('User'));
$this->Forum->ForumTopics->useModel(array('TopicLastPost',  
'TopicAuthor'));
$this->Forum->ForumTopics->TopicLastPost->useModel(array('User'));

thanks again.

On 21/gen/07, at 15:00, Grant Cox wrote:

>
> Yes, the bound "TopicLastPostAuthor" is 3 levels of recursion from  
> your
> Forum model, ie:
> $this->Forum->ForumTopics->TopicLastPost->TopicLastPostAuthor
>
> So, you need to use a recursive of at least 3 to get that data
> automatically loaded.  To simplify your bind/unbind, I would suggest
> using the "useModel" function from (
> http://bakery.cakephp.org/articles/view/78 ), it's a
> "unbindModelExcept" function as you mention in your post, and I've had
> no problems using it.
>
>
> >


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