I am already working a lot with linking models together, but not in
that recursive way, mostly only with one belongsTo relation.


But your hint "specifing the count in the 'fields' array" was a good
step in the right direction, I finally got the correct SELECT
statement created by cake ;-)


The other thing is the JOINS... they do not work correctly yet...

Now here is what I was doing fist:

Since I am calling the ModelA, I thought it would be enough to define
the following model linkings:

On ModelA: belongsTo ModelB
On ModelB: belongsTo ModelC
On ModelC: belongsTo ModelD

Thats it.

Unfortunately it stops joining tables after ModelB... so ModelB gets
correctly joined, but ModelC is ignored, even if I set the 'recursive'
parameter to 3... as far as I understood the whole thing, this should
find the link in ModelB to ModelC... but it does not.

Do I have to use the backwards links with hasMany from ModelD to
ModelC, ModelC to ModelB, ModelB to ModelA to get this working? Or do
I have to set up some kind of link in ModelA directly to ModelC and
ModelD?

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