InheritanceTest.php 500 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<?php
class InheritanceTest extends Doctrine_Record
{
    public function setTableDefinition()
    {
        $this->hasColumn('name', 'string');
        $this->hasColumn('type', 'string');
        
        $this->setSubclasses(array('InheritanceChildTest' => array('type' => 'type 1'), 
                                   'InheritanceChild2Test' => array('type' => 'type 2')));
    }
}

class InheritanceChildTest extends InheritanceTest
{ }

class InheritanceChild2Test extends InheritanceTest
{ }