From: Amiri Barksdale at Home Date: Thu, 23 Dec 2010 18:32:12 +0000 (-0800) Subject: Roll back MTITest result classes X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6ce50415c018c419b4f562df0b896dcbeb75ea23;p=dbsrgits%2FDBIx-Class-ResultSource-MultipleTableInheritance.git Roll back MTITest result classes --- diff --git a/t/lib/MTITest/Result/Bar.pm b/t/lib/MTITest/Result/Bar.pm index 17c2a05..b02325c 100644 --- a/t/lib/MTITest/Result/Bar.pm +++ b/t/lib/MTITest/Result/Bar.pm @@ -9,15 +9,23 @@ require MTITest::Result::Mixin; __PACKAGE__->table('bar'); __PACKAGE__->result_source_instance->add_additional_parent( - MTITest::Result::Mixin->result_source_instance ); + MTITest::Result::Mixin->result_source_instance +); -__PACKAGE__->add_columns( b => { data_type => 'integer' } ); +__PACKAGE__->add_columns( + b => { data_type => 'integer' } +); -__PACKAGE__->belongs_to( 'b_thang', 'MTITest::Result::JustATable', - { 'foreign.id' => 'self.b' }, +__PACKAGE__->belongs_to( + 'b_thang', + 'MTITest::Result::JustATable', + { 'foreign.id' => 'self.b' }, ); -__PACKAGE__->has_many( 'foos', 'MTITest::Result::Foo', - { 'foreign.a' => 'self.id' } ); +__PACKAGE__->has_many( + 'foos', + 'MTITest::Result::Foo', + { 'foreign.a' => 'self.id' } +); 1; diff --git a/t/lib/MTITest/Result/Foo.pm b/t/lib/MTITest/Result/Foo.pm index 78fbab8..d8b8e1b 100644 --- a/t/lib/MTITest/Result/Foo.pm +++ b/t/lib/MTITest/Result/Foo.pm @@ -10,13 +10,16 @@ __PACKAGE__->table_class(MultipleTableInheritance); __PACKAGE__->table('foo'); __PACKAGE__->add_columns( - id => { data_type => 'integer', is_auto_increment => 1 }, - a => { data_type => 'integer', is_nullable => 1 } + id => { data_type => 'integer', is_auto_increment => 1 }, + a => { data_type => 'integer', is_nullable => 1 } ); __PACKAGE__->set_primary_key('id'); -__PACKAGE__->belongs_to( 'bar', 'MTITest::Result::Bar', - { 'foreign.id' => 'self.a' } ); +__PACKAGE__->belongs_to( + 'bar', + 'MTITest::Result::Bar', + { 'foreign.id' => 'self.a' } +); 1;