in reply to Perl Syntax - What's the difference?

Most likely this is because somewhere in your setup/configuration, there is something that tells Moose / DBIC / whatever to map values from a column startdate to DateTime objects. But now the column is named start_date and that list has not been adjusted appropriately.

Alternatively, the column type has changed to something that the hidden magic of Moose / DBIC / whatever cannot determine that you want DateTime objects from what was a date column anymore. Or maybe it's now a timestamp column.

Maybe reducing your zoo of modules to a simple case of one table with two columns, startdate and start_date that still fails to magically inflate one column but magically inflates the other column can help us to give you better advice.

Replies are listed 'Best First'.
Re^2: Perl Syntax - What's the difference?
by Galdor (Sexton) on Apr 09, 2018 at 12:13 UTC
    ok Corion - you da man! - Youre reponse pushed me in the right directions - for more investigations. Wow wasted an hour on that... It appears that the original scripts had this included:
    > __PACKAGE__->load_components( qw/InflateColumn::DateTime /);
    and newly generated ones not - it seems to be the way that the DBIC was generated from the Pg schema - there is a script (that I used) that does not add this "pacakge" and there are some notes in a readme to do:
    dbicdump -o components='["InflateColumn::DateTime"]' \
    so I guess that was it - not even in the source code! Who new?! Thanks once again for the steer..