X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FSchema%2FLyrics.pm;h=3009314ca1998a67c08848ea1a6ba3b1742b9cb7;hb=3d8caf63b7fa6f2adf9bbd1f49bc7ad932d031b6;hp=3e4024e40820ce3a12e6f8f714e4e93ca5f2de0c;hpb=4f6386b03a5e179c64240c8ab7b3bbec8a2004e1;p=dbsrgits%2FDBIx-Class.git diff --git a/t/lib/DBICTest/Schema/Lyrics.pm b/t/lib/DBICTest/Schema/Lyrics.pm index 3e4024e..3009314 100644 --- a/t/lib/DBICTest/Schema/Lyrics.pm +++ b/t/lib/DBICTest/Schema/Lyrics.pm @@ -1,7 +1,10 @@ -package # hide from PAUSE +package # hide from PAUSE DBICTest::Schema::Lyrics; -use base qw/DBIx::Class::Core/; +use warnings; +use strict; + +use base qw/DBICTest::BaseResult/; __PACKAGE__->table('lyrics'); __PACKAGE__->add_columns( @@ -18,4 +21,8 @@ __PACKAGE__->set_primary_key('lyric_id'); __PACKAGE__->belongs_to('track', 'DBICTest::Schema::Track', 'track_id'); __PACKAGE__->has_many('lyric_versions', 'DBICTest::Schema::LyricVersion', 'lyric_id'); +__PACKAGE__->has_many('existing_lyric_versions', 'DBICTest::Schema::LyricVersion', 'lyric_id', { + join_type => 'inner', +}); + 1;