Wednesday, April 29, 2009

Re: recursive for parents

On Wed, Apr 29, 2009 at 12:51 PM, fain182 <fain182@gmail.com> wrote:
>
> hello,
> i have 5 model related in this way:
> A belongs to B (B has many A)
> B belongs to C (C has many B)
> C belongs to D (D has many C)
> D belongs to E (E has many D)
>
> in the view of A i would show his parent B, C, D and E
> which number should I set A ? (i didn't understood the page about
> recursive in the cookbook.)

Have you tried 2?

> what is the best way for not include a lot of unusefull data?

Use ContainableBehavior.

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

No comments: