[Dbix-class] setting automatic value on every update
Matt S Trout
dbix-class at trout.me.uk
Thu Mar 2 21:18:23 CET 2006
On Thu, Mar 02, 2006 at 08:58:07PM +0100, Bernhard Graf wrote:
> http://search.cpan.org/~mstrout/DBIx-Class-0.05007/lib/DBIx/Class/Manual/Cookbook.pod#Setting_default_values_for_a_row
> suggest overriding new() to set default values on creation.
>
> What's the best way to set a column value on every update?
> I want to set a "modified field" on every update.
Override update() ?
--
Matt S Trout Offering custom development, consultancy and support
Technical Director contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more information
+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +
More information about the Dbix-class
mailing list