Sorry I have mistaked.
A has belongsTo Association with B
A has hasAndBelongsToMany Association with C
B has hasMany Association with A
I change the methods findAll and find for A where I change the field
of the model C that I get normally with findAll and find.
I make a findAll operation on model A with recursive 3
I get this
A--|
B--|
A--|
C
The field of C is empty.
Instead if I make a findAll operation on model A with recursive 0
iget
A--|
B
|
C
With C that is not empty
On 7 Gen, 19:24, francky06l <[EMAIL PROTECTED]> wrote:
> Sorry, a bit unclear to me :
>
> A hasMany B ?
> B has got which relation with A ?
>
> On Jan 7, 7:18 pm, "[EMAIL PROTECTED]"
>
> <[EMAIL PROTECTED]> wrote:
> > Hi
> > I have this question.
> > I have a model A where I change the methods findAll and find.
> > Now I have another model B that is in "hasMany" association with this
> > model.
> > Now if in the controller I make a find operation on model A I get the
> > right result.
> > If I make a find operation on model B with recursive=2 I don't get
> > the right result for model A associated with model B.
> > How can I do to get the right result even if I use recursive?
> > Many Thanks
> > IInstead nstead Marco
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---