correct me if i'm wrong someone, but you could use bindModel(). you
can set an association as and when you need it with the same
parameters as defining an assocation at the model level.

so, when you require only those three fields you could use bindModel
at that point.

i'm thinking that if you use bindModel with an already associated
Model then it will simply overwrite it in that particular association
array. i'm yet to confirm if you need to unbind and then rebind. i
need to look through the code more.

sorry i couldn't of been more help.

On 12/09/06, mathaios <[EMAIL PROTECTED]> wrote:
>
> Thanks, I knew there were a more elegant way!
>
> The only problem with this solution is that specifing the fields in the
> model the exclusion of the fields is permanent when using associations
> I think.
>
> Many thanks anyway!
>
>
> >
>

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

Reply via email to