2 DBIx::Class::CDBICompat::Relationship;
7 use base 'DBIx::Class';
9 use DBIx::Class::_Util 'quote_sub';
14 DBIx::Class::CDBICompat::Relationship - Emulate the Class::DBI::Relationship object returned from meta_info()
18 Emulate the Class::DBI::Relationship object returned from C<meta_info()>.
24 class => 'self_class',
25 accessor => 'accessor',
26 foreign_class => 'class',
30 quote_sub __PACKAGE__ . "::$_" => "\$_[0]->{$method2key{$_}}"
34 my($class, $args) = @_;
36 return bless $args, $class;
39 =head1 FURTHER QUESTIONS?
41 Check the list of L<additional DBIC resources|DBIx::Class/GETTING HELP/SUPPORT>.
43 =head1 COPYRIGHT AND LICENSE
45 This module is free software L<copyright|DBIx::Class/COPYRIGHT AND LICENSE>
46 by the L<DBIx::Class (DBIC) authors|DBIx::Class/AUTHORS>. You can
47 redistribute it and/or modify it under the same terms as the
48 L<DBIx::Class library|DBIx::Class/COPYRIGHT AND LICENSE>.