NAME
Mandel::Relationship::HasOne - A field relates to another mongodb document
DESCRIPTION
Example:
MyModel::Cat
->description
->relationship(has_one => owner => 'MyModel::Person');
Will add:
$cat = MyModel::Cat->new->owner(\%args, $cb);
$cat = MyModel::Cat->new->owner($person_obj, $cb);
$person_obj = MyModel::Cat->new->owner(\%args);
$person_obj = MyModel::Cat->new->owner($person_obj);
$person = MyModel::Cat->new->owner;
$self = MyModel::Cat->new->owner(sub { my($self, $err, $person) = @_; });
METHODS
monkey_patch
Add methods to "document_class" in Mandel::Relationship.
SEE ALSO
Mojolicious, Mango, Mandel::Relationship
AUTHOR
Jan Henning Thorsen - jhthorsen@cpan.org