view Lib/IMPL/ORM/Schema/Relation/Subclass.pm @ 43:009aa9ca2e48

merge
author Sergey
date Thu, 07 Jan 2010 15:41:49 +0300
parents dd4d72600c69
children 16ada169ca75
line wrap: on
line source

package IMPL::ORM::Schema::Relation::Subclass;
use strict;
use warnings;

use base qw(IMPL::ORM::Schema::Relation);
use IMPL::Class::Property;

BEGIN {
    public property base => prop_get | owner_set;
}

our %CTOR = (
    'IMPL::ORM::Schema::Relation' => sub { 'Subclass' }
);

sub CTOR {
    my ($this,$base) = @_;
    
    $this->base($base) or die new IMPL::InvalidArgumentException('A base is required for this relation');
}

sub canHaveChildren {
    0;
}

1;