Mercurial > pub > Impl
view lib/IMPL/ORM/Schema/Relation/Subclass.pm @ 423:60c2892a577c ref20150831
working on base class system
author | cin |
---|---|
date | Mon, 02 Apr 2018 07:35:23 +0300 |
parents | c6e90e02dd17 |
children |
line wrap: on
line source
package IMPL::ORM::Schema::Relation::Subclass; use strict; use warnings; use parent 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;