Subject: | Must inherit from DBIx::Class |
The Serializer compoent must inherit from DBIx::Class:
use base 'DBIx::Class';
Without that, the order of methods will not resolve the way DBIC expects them to. This results
in weird bugs where the order of components matter.
I found the bug with
__PACKAGE__->load_components(qw/Core InflateColumn::DateTime InflateColumn::Serializer
/);
This resulted in datetime columns behaving like they should, while serializer didn't.
switching the order around to
__PACKAGE__->load_components(qw/Core InflateColumn::Serializer InflateColumn::DateTime
/);
made both work, but this is not the right fix long term. Order should not matter