Inheritance not extending correctly #572

Closed
drodil opened this Issue Mar 10, 2014 · 2 comments

Comments

Projects
None yet
2 participants

drodil commented Mar 10, 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?

Owner

marcj commented Apr 11, 2014

I guess the Base\Person should just not be generated as it's nowhere in use.

Owner

marcj commented Apr 16, 2014

The question is: For what do you need BasePerson?

@marcj marcj closed this Oct 9, 2014

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