C<LinerNotes>:
# Relationships defined elsewhere:
- # CD->belongs_to('artist' => 'Artist');
+ # CD->refers_to('artist' => 'Artist');
# CD->has_one('liner_notes' => 'LinerNotes', 'cd');
my $rs = $schema->resultset('CD')->search(
{
notes:
# Relationship defined elsewhere:
- # LinerNotes->belongs_to('author' => 'Person');
+ # LinerNotes->refers_to('author' => 'Person');
my $rs = $schema->resultset('Artist')->search(
{
__PACKAGE__->table('user_address');
__PACKAGE__->add_columns(qw/user address/);
__PACKAGE__->set_primary_key(qw/user address/);
- __PACKAGE__->belongs_to('user' => 'My::User');
- __PACKAGE__->belongs_to('address' => 'My::Address');
+ __PACKAGE__->refers_to('user' => 'My::User');
+ __PACKAGE__->refers_to('address' => 'My::Address');
package My::Address;
use base 'DBIx::Class::Core';