[Dbix-class] Automatic set_formatter for a datetime column?

Paul Makepeace paulm at paulm.com
Mon Mar 31 03:11:07 BST 2008


I use the very nifty add_columns(startdate =3D> {data_type =3D> 'datetime'}=
) in
my schema files, but am currently having to 'manually' set_formatter on each
object as I pull it out ($_->startdate->set_formatter($dt_parser) for
@rows). What's the blessed way of doing this in the schema?

The myriad InflateColumn stuff in CPAN is kinda confusing...

Thanks, Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20080331/88e=
32f3e/attachment.htm


More information about the DBIx-Class mailing list