1 package DBICTest::Schema::ResultSet::Artist;
4 use Method::Signatures::Simple;
5 extends 'DBICTest::Schema::ResultSet';
7 method with_substr () {
11 my $substr = substr($row->{name}, 0, 3);
12 $row->{substr} = $substr;
19 method with_substr_old () {
20 foreach my $row ($self->all) {
21 my $substr = substr($row->name, 0, 3);
22 $self->add_row_info(row => $row, info => { substr => $substr });