Initial commit
[dbsrgits/DBIx-Class-Schema-ResultSetAccessors.git] / t / lib / MyApp2 / Schema / Result / Artist.pm
diff --git a/t/lib/MyApp2/Schema/Result/Artist.pm b/t/lib/MyApp2/Schema/Result/Artist.pm
new file mode 100644 (file)
index 0000000..20572f6
--- /dev/null
@@ -0,0 +1,9 @@
+package MyApp2::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 => 'MyApp2::Schema::Result::CD', 'artistid');
+
+1;
\ No newline at end of file