Tuesday, June 22, 2010

Re: Recursive find but not in all models

use containable behaviour: http://book.cakephp.org/view/474/Containable

On Jun 22, 8:52 pm, "Fernando Z. Bob" <fzmas...@gmail.com> wrote:
> Hi.
> I have a lot of relations between Users and another models.
>
> Like:
>
> User hasMany Download
> User belongsTo Company
> Company hasMany Product
> Download hasMany Type
>
> So I wanna use the find method, like $this->User->find('first',
> array('conditions'=>bla bla bla));
>
> But, it returns me ALL the data contained in Company, Product, etc...
> I don't want this. I just want the recursive find enters the Download table.
>
> Do someone have the idea of how can I do that?
>
> Thank you.

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate