__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;
__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;