That has nothing to do with DBIC at all, you just need to create
DateTime objects and pass them to DBIC instead of the string.

I'd use DateTime::Format::Strptime for parsing the dates from your xml.

--
Best regards, Alex


Am Dienstag, den 20.07.2010, 11:41 +0200 schrieb Alex Povolotsky:
> On 07/20/10 13:38, Alexander Hartmaier wrote:
> > The inflatecolumn plugins create objects from strings coming out of the
> > database and stringify objects you pass you the column accessors back to
> > strings.
> >
> > If you set the column to a string (the one from your xml file) the
> > plugin doesn't touch it.
> >
> > So what you want is to create DateTime objects from the strings and pass
> > those to the column accessor.
> >
> Sure; how do I do it? I have several autogenerated Schema files.
>
> Alex.
>
>
> _______________________________________________
> List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
> IRC: irc.perl.org#dbix-class
> SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
> Searchable Archive: http://www.grokbase.com/group/[email protected]


*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
T-Systems Austria GesmbH   Rennweg 97-99, 1030 Wien
Handelsgericht Wien, FN 79340b
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
Notice: This e-mail contains information that is confidential and may be 
privileged.
If you are not the intended recipient, please notify the sender and then
delete this e-mail immediately.
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*

_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[email protected]

Reply via email to