[Dbix-class] Automatic set_formatter for a datetime column?
Matt S Trout
dbix-class at trout.me.uk
Sun Apr 6 20:51:23 BST 2008
On Mon, Mar 31, 2008 at 03:11:07AM +0100, Paul Makepeace wrote:
> I use the very nifty add_columns(startdate => {data_type => '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...
Patch InflateColumn::DateTime to support it maybe?
--
Matt S Trout Need help with your Catalyst or DBIx::Class project?
Technical Director http://www.shadowcat.co.uk/catalyst/
Shadowcat Systems Ltd. Want a managed development or deployment platform?
http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/servers/
More information about the DBIx-Class
mailing list