Вячеслав Тихановский > ObjectDB-0.990103 > ObjectDB::Relationship::Base

Download:
ObjectDB-0.990103.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source  

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.

related_table

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.

syntax highlighting: