X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FPrefetchBug%2FLeftRight.pm;fp=t%2Flib%2FPrefetchBug%2FLeftRight.pm;h=cf76ec0cea8093495dd14ce5451a7fd4e489dddb;hb=a48693f42edb71a1a06fdc08944a379fd98e6999;hp=0000000000000000000000000000000000000000;hpb=91fe73bcf7e35c0c3bfa82947d5392770eef9f49;p=dbsrgits%2FDBIx-Class.git diff --git a/t/lib/PrefetchBug/LeftRight.pm b/t/lib/PrefetchBug/LeftRight.pm new file mode 100644 index 0000000..cf76ec0 --- /dev/null +++ b/t/lib/PrefetchBug/LeftRight.pm @@ -0,0 +1,24 @@ +package + PrefetchBug::LeftRight; + +use strict; +use warnings; + +use base 'DBIx::Class::Core'; + +__PACKAGE__->table('left_right'); +__PACKAGE__->add_columns( + left_id => { data_type => 'integer' }, + right_id => { data_type => 'integer' }, + value => {}); + +__PACKAGE__->set_primary_key('left_id', 'right_id'); +__PACKAGE__->belongs_to(left => 'PrefetchBug::Left', 'left_id'); +__PACKAGE__->belongs_to( + right => 'PrefetchBug::Right', + 'right_id', +# {join_type => 'left'} +); + + +1;