X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FMyApp1%2FSchema%2FResult%2FArtist.pm;fp=t%2Flib%2FMyApp1%2FSchema%2FResult%2FArtist.pm;h=53a4e94b2390323ae19fe12a524415096db142e0;hb=731e8b3e4dc45f47f80dfb89f34fac156fbe526f;hp=0000000000000000000000000000000000000000;hpb=7f92017a08dce9905018015070808338e02cf966;p=dbsrgits%2FDBIx-Class-Schema-ResultSetAccessors.git diff --git a/t/lib/MyApp1/Schema/Result/Artist.pm b/t/lib/MyApp1/Schema/Result/Artist.pm new file mode 100644 index 0000000..53a4e94 --- /dev/null +++ b/t/lib/MyApp1/Schema/Result/Artist.pm @@ -0,0 +1,9 @@ +package MyApp1::Schema::Result::Artist; +use base qw/DBIx::Class::Core/; + +__PACKAGE__->table('artist'); +__PACKAGE__->add_columns(qw/ artistid name /); +__PACKAGE__->set_primary_key('artistid'); +__PACKAGE__->has_many(cds => 'MyApp1::Schema::Result::CD', 'artistid'); + +1; \ No newline at end of file