If it's on a per-find basis that you need to make the change, sure, just use
bindModel() to "rebind" the model changing those details. Otherwise doing
another association like you mentioned also works.

-MI

---------------------------------------------------------------------------

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 

BAKE ON!

blog: http://www.MarianoIglesias.com.ar


-----Mensaje original-----
De: [email protected] [mailto:[EMAIL PROTECTED] En nombre
de joel
Enviado el: Sábado, 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 has those fields.


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

Reply via email to