<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">NAME
    DBIx::Class::Helpers - Simplify the common case stuff for DBIx::Class.

VERSION
    version 2.003002

SYNOPSIS
     package MyApp::Schema::Result::Foo_Bar;

     __PACKAGE__-&gt;load_components(qw{Helper::JoinTable Core});

     __PACKAGE__-&gt;join_table({
        left_class   =&gt; 'Foo',
        left_method  =&gt; 'foo',
        right_class  =&gt; 'Bar',
        right_method =&gt; 'bar',
     });

     # define parent class
     package ParentSchema::Result::Bar;

     use strict;
     use warnings;

     use parent 'DBIx::Class';

     __PACKAGE__-&gt;load_components('Core');

     __PACKAGE__-&gt;table('Bar');

     __PACKAGE__-&gt;add_columns(qw/ id foo_id /);

     __PACKAGE__-&gt;set_primary_key('id');

     __PACKAGE__-&gt;belongs_to( foo =&gt; 'ParentSchema::Result::Foo', 'foo_id' );

     # define subclass
     package MySchema::Result::Bar;

     use strict;
     use warnings;

     use parent 'ParentSchema::Result::Bar';

     __PACKAGE__-&gt;load_components(qw{Helper::SubClass Core});

     __PACKAGE__-&gt;subclass;

SEE ALSO
    DBIx::Class::Helper::Row::JoinTable,
    DBIx::Class::Helper::ResultSet::SubClass, DBIx::Class::Helpers::Util

AUTHOR
      Arthur Axel "fREW" Schmidt &lt;frioux+cpan@gmail.com&gt;

COPYRIGHT AND LICENSE
    This software is copyright (c) 2010 by Arthur Axel "fREW" Schmidt.

    This is free software; you can redistribute it and/or modify it under
    the same terms as the Perl 5 programming language system itself.

</pre></body></html>