X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FSchema%2FBasicRels.pm;h=7a6f520aa838e4850b89723efb62893d142247ba;hb=2957cdf8493a5ec685c1be686edf6575831cfd47;hp=9894bb94e45cd1c85686918fc80beb3240cdbf87;hpb=7b0fc1bee6c2168a7aa6455051c8ef085f1d99c3;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/lib/DBICTest/Schema/BasicRels.pm b/t/lib/DBICTest/Schema/BasicRels.pm index 9894bb9..7a6f520 100644 --- a/t/lib/DBICTest/Schema/BasicRels.pm +++ b/t/lib/DBICTest/Schema/BasicRels.pm @@ -77,8 +77,7 @@ DBICTest::Schema::Tag->add_relationship( DBICTest::Schema::Track->add_relationship( cd => 'DBICTest::Schema::CD', - { 'foreign.cdid' => 'self.cd' }, - { accessor => 'single' } + { 'foreign.cdid' => 'self.cd' } ); DBICTest::Schema::TwoKeys->add_relationship( @@ -101,5 +100,6 @@ DBICTest::Schema::CD_to_Producer->add_relationship( # now the Helpers DBICTest::Schema::CD->many_to_many( 'producers', 'cd_to_producer', 'producer'); +DBICTest::Schema::CD->many_to_many( 'producers_sorted', 'cd_to_producer', 'producer', { order_by => 'producer.name' }); 1;