I stand corrected, didn't think of that workaround (not sure I'd call  
it a feature).
Would be great if Cake would recognize these potentials for  
optimization automagically...

On 12 Oct 2008, at 23:00, AD7six wrote:

> On Oct 12, 3:04 pm, "David C. Zentgraf" <[EMAIL PROTECTED]> wrote:
>> Unfortunately there's no makeQueriesSuckLess flag in Cake. Yet. It
>> gets you the results you ask for, just don't ask how. If you care
>> about the how, do it yourself. ;-)
>
> FUD. What's the point of using a framework if you are going to ignore
> one if it's most powerful features.
>
> Define or bind B -> belongsTo C
> Define or bind B -> hasOne A
>
> $result = $this->A->B->read/find();
>
> $result will contain a, b and c
> >


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