NAME
Async::ORM::Relationship::OneToOne - one to one relationship for Async::ORM
SYNOPSIS
package Author;
use Any::Moose;
extends 'Async::ORM';
__PACKAGE__->schema(
table => 'author',
columns => [qw/id name password/],
primary_keys => ['id'],
auto_increment => 'id',
unique_keys => 'name',
relationships => {
author_admin => {
type => 'one to one',
class => 'AuthorAdmin',
map => {id => 'author_id'}
}
}
);
1;
DESCRIPTION
One to one relationship for Async::ORM.
ATTRIBUTES
Inherits everything from Async::ORM::Relationship::ManyToOne.
METHODS
Inherits everything from Async::ORM::Relationship::ManyToOne.
AUTHOR
Viacheslav Tikhanovskii, vti@cpan.org
.
COPYRIGHT
Copyright (C) 2009, Viacheslav Tikhanovskii.
This program is free software, you can redistribute it and/or modify it under the same terms as Perl 5.10.