I have tried something like the following,
my $artists = $schema->resultset('Artist') ; # $artists->result_class ('DBIx::Class::ResultClass::HashRefInflator'); # will cause errors my $artistAndTitles = $artists->next->cds() ; $artistAndTitles->result_class ('DBIx::Class::ResultClass::HashRefInflator'); while (my $hashref = $artistAndTitles->next) { print Dumper($hashref) ; }
But this way I only get a 'shallow' hash from the 'cds' result subset for only one row at a time instead of each Artist + all the titles.
Maybe there is another way? Examples appreciated.
In reply to Re^2: DBIx::Class::ResultSet disired hash output including related items
by Veltro
in thread DBIx::Class::ResultSet desired hash output including related items
by Veltro
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |