8 my $schema = DBICTest->init_schema();
11 my $artist = $schema->resultset('Artist')->find(1);
12 my $artist_cds = $artist->search_related('cds');
14 my $cover_band = $artist->copy;
16 my $cover_cds = $cover_band->search_related('cds');
17 cmp_ok($cover_band->id, '!=', $artist->id, 'ok got new column id...');
18 is($cover_cds->count, $artist_cds->count, 'duplicated rows count ok');
21 cmp_ok($cover_band->search_related('twokeys')->count, '>', 0, 'duplicated multiPK ok');
23 #and check copying a few relations away
24 cmp_ok($cover_cds->search_related('tags')->count, '==',
25 $artist_cds->search_related('tags')->count , 'duplicated count ok');