[Dbix-class] updating multiple records at once
Jonathan Rockway
jon at jrock.us
Fri Jan 25 18:28:18 GMT 2008
"Aaron Trevena" <aaron.trevena at gmail.com> writes:
> Hi people,
>
> I've had a quick google and scan of the docs but can't find anything
> about updating multiple records at once.
How about:
$schema->resultset('SomeTable')->search({ records => 'to update' })
->update({ foo => 'bar' });
That's the idea behind the ResultSet; you get one and you do stuff to it
:)
Regards,
Jonathan Rockway
More information about the DBIx-Class
mailing list