X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FSchema%2FTag.pm;fp=t%2Flib%2FDBICTest%2FSchema%2FTag.pm;h=242d723dcb6b7474075c154fe6405d3c295ff086;hb=a02675cd9a11e1f354220319da9f5d573a2e484a;hp=0000000000000000000000000000000000000000;hpb=f8c4996c81bc00b9381fb92394626049cac2ba05;p=dbsrgits%2FDBIx-Class.git diff --git a/t/lib/DBICTest/Schema/Tag.pm b/t/lib/DBICTest/Schema/Tag.pm new file mode 100644 index 0000000..242d723 --- /dev/null +++ b/t/lib/DBICTest/Schema/Tag.pm @@ -0,0 +1,13 @@ +package DBICTest::Tag; + +use base qw/DBIx::Class::Core/; + +DBICTest::Tag->table('tags'); +DBICTest::Tag->add_columns(qw/tagid cd tag/); +DBICTest::Tag->set_primary_key('tagid'); +DBICTest::Tag->add_relationship( + cd => 'DBICTest::CD', + { 'foreign.cdid' => 'self.cd' } +); + +1;