lts>.
package MyApp::Schema::Result::ArtistEvent;
use warnings;
use strict;
use JSON;
use base qw( DBIx::Class::Core );
__PACKAGE__->load_components(qw/ InflateColumn::Date
not have to be JSON, just be able to serialize a hashref.
{
my $json = JSON->new->utf8;
__PACKAGE__->inflate_column( 'details' => {
inflate => sub { $json->decode(shift
) },
deflate => sub { $json->encode(shift) },
} );
}
This L<C<belongs_to>|DBIx::Class::Relationship/belongs_to>
relationship is optional,
and the examples and tests assume if