Hi,
$model->updateAll might be your friend in this case. You could do something
like:
$this->Task->updateAll("Task.date" => $value);
Richard
On Mon, Mar 16, 2009 at 9:02 PM, gc1155 <[email protected]> wrote:
>
> I've read up on multirecord forms and I think I have the basics down
> using Cake 1.2. However, what if I want to make one modification and
> have it apply to several records?
>
> For instance, given a "Task" model with a Day field. I'd like to be
> able to pick a day and submit the form. The day field would then be
> applied to all the records in the submit.
>
> Is there a cake way of doing this by convention?
>
> My hunch is that I'll have to manipulate the data in the controller to
> apply the change to all the records before calling save.
>
>
> Thanks
>
>
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---