Hello,
Have you set recursive to 2 in your find options array (http://
book.cakephp.org/view/439/recursive)? When querying your User model,
that should get you the profile and infogroups.
As for joining Information to your infogroups, I am not sure if
recursive = 2 will automatically join to that depth. Try binding
Information to the Infogroup model before querying. When working from
the User model:
$this->Profile->Infogroup->bindModel(
array('hasMany' => array('Information'))
);
Since this will take you to three levels of recursion, you might also
want to unbind any extra models.
Let me know what works for you. I have never needed to join past
recursive = 2.
Good luck.
On Nov 18, 3:24 pm, kdubya <[email protected]> wrote:
> On Nov 7, 2:35 pm, Thiago Nuic Vidigal <[email protected]> wrote:
>
> > You can include other tables in the query using the 'joins' option of the
> > Model->find method.
>
> This sound like the solution to a problem I am trying to solve but I
> have looked in the Manual and can find almost nothing about "joins"
> option to "find()'. Can you give an example of a "find()" that uses
> "joins"? I am looking for the specific syntax.
>
> Thank you,
> Ken
--
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=.