be smart, be cool, and share your knowledge.
BAKE ON!
-Mensaje original-
De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
de [EMAIL PROTECTED]
Enviado el: Jueves, 21 de Diciembre de 2006 04:44 p.m.
Para: Cake PHP
Asunto: Re: does cake not join tables when using hasMany
ah, thanks for the reply. using the fake hasOne relationship worked.
but, the page still performs a *ton* of sql queries. is ther any way
of limiting this?
On Dec 21, 1:21 am, "AD7six" <[EMAIL PROTECTED]> wrote:
On Dec 21, 3:03 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> first off,
On Dec 21, 3:03 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
first off, it seems like the page would probably run faster if it was
just one query instead of 30 or 40.
but the other reason is to filter results or get variables from the
other model. for instance, if Forrest has many Trees a
first off, it seems like the page would probably run faster if it was
just one query instead of 30 or 40.
but the other reason is to filter results or get variables from the
other model. for instance, if Forrest has many Trees and i query
Forrest wanting to only return Trees that are Brown, how
I think it has something to do with the result parser. It's not a bug, it's
by design.
Other association that does join tables are belongsTo.
Why do you need it in one query?
-Original Message-
From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of [EMAIL PROTECTED]
Sen