Merge 'trunk' into 'sybase'
[dbsrgits/DBIx-Class.git] / examples / Schema / MyDatabase / Main / Cd.pm
1 package MyDatabase::Main::Cd;
2 use base qw/DBIx::Class/;
3 __PACKAGE__->load_components(qw/PK::Auto Core/);
4 __PACKAGE__->table('cd');
5 __PACKAGE__->add_columns(qw/ cdid artist title/);
6 __PACKAGE__->set_primary_key('cdid');
7 __PACKAGE__->belongs_to('artist' => 'MyDatabase::Main::Artist');
8 __PACKAGE__->has_many('tracks' => 'MyDatabase::Main::Track');
9
10 1;