Subject: | DBIx::Class doesn't Automatically Handle the Datetime Columns |
Date: | Fri, 28 Nov 2014 20:00:09 +0100 |
To: | bug-Catalyst-Manual [...] rt.cpan.org |
From: | Alfonso Pinto <alfonso.pinto [...] gmail.com> |
In 04_BasicCRUD, section "Update DBIx::Class to Automatically Handle
the Datetime Columns, after running again the helper with
component=TimeStamp, DBIx::Class::TimeStamp is not automatically
added to lib/MyApp/Schema/Result/Book.pm. This way, created and
updated fields are not handled automatically.
I had to add manually to lib/MyApp/Schema/Result/Book.pm the following line:
__PACKAGE__->load_components("TimeStamp");
Then created and updated fields are handled automatically.
I don't know if it's an error in the tutorial, a bug in DBIC
Schema::Loader, a change...
Regards,
Alfonso