The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

ObjectDB::Relationship::Base - A base class for ObjectDB relationships

SYNOPSIS

    package My::Relationship;

    use strict;
    use warnings;

    use base 'ObjectDB::Relationship::Base';

    ...

DESCRIPTION

This is a base class for all ObjectDB relationships.

ATTRIBUTES

new

Returns new ObjectDB::Relationship::Base instance.

name

Holds relationship name.

type

Holds relationship type.

with

Holds relationships that are fetched automatically.

where

Array reference that is passed to every where clause.

join_args

Despite of automatic joins you can specify additional join args.

METHODS

orig_class

Returns original class automatically loading it.

class

Returns related class automatically loading it.

Returns related table name.

AUTHOR

Viacheslav Tykhanovskyi, vti@cpan.org.

COPYRIGHT

Copyright (C) 2009, Viacheslav Tykhanovskyi.

This program is free software, you can redistribute it and/or modify it under the same terms as Perl 5.10.