| 1 | package DBIO::Test::MooCakeSchema::Result::Artist; | ||
| 2 | # ABSTRACT: Moo + Cake test result class for the artist table | ||
| 3 | |||
| 4 | 3 | our $VERSION = '0.900007'; | |
| 5 | |||
| 6 | 3 | ▶ | use DBIO::Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 3 | ▶ | use DBIO::Cake; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 3 | table 'artist'; | |
| 10 | |||
| 11 | 3 | col id => integer auto_inc; | |
| 12 | 3 | col name => varchar(100); | |
| 13 | |||
| 14 | 3 | primary_key 'id'; | |
| 15 | |||
| 16 | 3 | __PACKAGE__->has_many( cds => 'DBIO::Test::MooCakeSchema::Result::CD', 'artist_id' ); | |
| 17 | |||
| 18 | 3 | __PACKAGE__->resultset_class('DBIO::Test::MooCakeSchema::ResultSet::Artist'); | |
| 19 | |||
| 20 | 3 | has display_name => ( is => 'lazy' ); | |
| 21 | 1 | ▶ | sub _build_display_name { 'Artist: ' . $_[0]->name } |
|
Subroutine
_build_display_name: called CC=1 SCAR=0.0
| |||
| 22 | |||
| 23 | 1 | ▶ | has score => ( is => 'rw', lazy => 1, default => sub { 0 } ); |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 24 | |||
| 25 | 3 | 1; | |
| 26 | |||
| 27 | __END__ | ||