7 my $schema = DBICTest->init_schema();
10 my $artist_with_year2001_cds = $schema->resultset('Artist')->find(1);
11 is $artist_with_year2001_cds->year2001_cds->count, 1, 'artist has one cd from 2001 without prefetching';
15 my $artist_with_year2001_cds = $schema->resultset('Artist')->find(1, { prefetch => 'year2001_cds' });
16 is $artist_with_year2001_cds->year2001_cds->count, 1, 'artist has one cd from 2001 with prefetching';