view Lib/IMPL/ORM/Schema/Relation/Subclass.pm @ 46:75148ccd732d

Upgrading resources
author Sergey
date Tue, 02 Feb 2010 17:09: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;