Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Inheritance not extending correctly #572

Closed
drodil opened this Issue · 2 comments

2 participants

@drodil

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?

@marcj
Owner

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

@marcj
Owner

The question is: For what do you need BasePerson?

@marcj marcj closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.