Inheritance not extending correctly #840

Open
drodil opened this Issue Mar 7, 2014 · 0 comments

Comments

Projects
None yet
1 participant

drodil commented Mar 7, 2014

Here is my schema:

<table name="object">
    <column name="ID" phpName="Id" type="INTEGER" size="10" sqlType="int(10) unsigned" primaryKey="true" autoIncrement="true" required="true"/>
    <column name="ObjectTypeID" type="integer" inheritance="single">
        <inheritance key="1" class="Person" extends="Object"/>
    </column>
</table>
<table name="person">
    <column name="Forename" phpName="Forename" type="VARCHAR" size="45" required="true"/>
    <column name="Surname" phpName="Surname" type="VARCHAR" size="45" required="true"/>
</table>

When I run the schema update and check the BasePerson class it does not extend the ChildObject correctly thus the PersonQuery class correctly extends the ObjectQuery class. Is this a bug or am I doing something wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment