07 de Abril de 2007 09:45 p.m.
Para: Cake PHP
Asunto: Re: Limiting findAll() fields in associations
Thanks, Mariano! That makes sense. Is there any easy way to change
this on the fly? Otherwise, I guess I could just make another hasMany
association, like CommentTeaser, that only h
Thanks, Mariano! That makes sense. Is there any easy way to change
this on the fly? Otherwise, I guess I could just make another hasMany
association, like CommentTeaser, that only has those fields.
--~--~-~--~~~---~--~~
You received this message because you are
are your knowledge.
BAKE ON!
blog: http://www.MarianoIglesias.com.ar
-Mensaje original-
De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
de joel
Enviado el: Sábado, 07 de Abril de 2007 09:28 p.m.
Para: Cake PHP
Asunto: Limiting findAll() fields in associations
Let
Let's say I have a Blog with many Comments, but I only want to return
some of the fields for the Blog and its Comments. Is it possible to
use findAll() to only return, for example, the fields Blog.id and
Blog.title (which I know how to do using the $fields parameter in
findAll), but also only Com