Hey FF, I believe that the documentation is talking about recursives
being set from within the find() function rather than outside of it.
The problem with setting $this->Model->recursive is that it effects
your model for that entire request. So if you had another method run
after this method that needed to find information about the Campaign,
it would be set to the recursive value that you set using $this->Model-
>recursive

Depending on how much data you have, I have not had great experiences
with recursive 2's.

I would look into the containable behavour

On Nov 20, 8:47 am, "FF (dan)" <[EMAIL PROTECTED]> wrote:
> You champion.
>
> $this->Campaign->recursive = 2; Before the read() works perfectly!
>
> *Grumbles* It's annoying that the docs state that this attribute
> affects only the find() and findAll() methods!
>
> On Nov 20, 1:42 pm, "Renan Gonçalves" <[EMAIL PROTECTED]> wrote:
>
> > Are you talking about recursive?
> > Take a look at the manual page:http://book.cakephp.org/view/439/recursive
>
> > Regards,
>
> > On Thu, Nov 20, 2008 at 11:30 AM, FF (dan) <[EMAIL PROTECTED]> wrote:
>
> > > Currently using $this->Model->read() fetched data in this format:
>
> > > Model
> > >  -> Record
> > > Related Model
> > >  -> Record(s)
>
> > > Is it possible, when using $this->Model->read(), to grab records in
> > > this format?
>
> > > Model
> > >  -> Record
> > > Related Model
> > >  -> Record(s)
> > >    -> Related Model
> > >      ->Record(s)
>
> > > TIA
>
> > --
> > Renan Gonçalves aka renan.saddam
> > Software Engineer - CakePHP Core Developer
> > Cell Phone: +55 11 8633 6018
> > MSN: [EMAIL PROTECTED]
> > São Paulo - SP/Brazil
--~--~---------~--~----~------------~-------~--~----~
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=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to