Hi,
I'm creating an application where i use a lot of belongsTo and hasMany
relations. It's kind of like a school. A school has many classes and
the classes belongs to the school. Every class has many students who
belong to the school.
Now when I in my application do a findAll on, let's say, a group with
a high recursion level, i.e. 5, the main structure resulting array
looks something like this: (I'm skipping the details that doesn't
matter)
Group => array(
Student => array(
Group => array(
Student => array(
...
)
...
)
...
)
...
)
The same group and the same students are fetched several times (using
different queries). Of course, with even more models (schools,
regions, ...), the amount of data fetched grows huge! This might not
have a very big impact on performance, but it sure doesn't feel
good. :)
My question is, is there a way to prevent that the same data is
fetched (and added to the results array) several times, without
lowering the recursion level?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---