DBIx-EAV
view release on metacpan or search on metacpan
t/lib/My/Entity/Artist.pm view on Meta::CPAN
package My::Entity::Artist;
use Moo;
BEGIN { extends 'DBIx::EAV::Entity' }
__PACKAGE__->attribute('name');
__PACKAGE__->attribute({ name => 'birth_date', type => 'datetime' });
__PACKAGE__->attribute('description:text');
__PACKAGE__->attribute('rating:int');
__PACKAGE__->many_to_many('CD');
sub uc_name {
uc shift->get('name');
}
1;
( run in 0.568 second using v1.01-cache-2.11-cpan-73692580452 )