DDC-1135: Relation columns (like of ManyToOne mappings) are missing on multilevel inheritance #1427

Closed
opened 2026-01-22 13:14:01 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (May 4, 2011).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user toberger:

I try to setup a class structure with a multilevel inheritance which is described here: http://pastebin.com/dDXAKN5M
To generate the schema I use the "doctrine:schema:create" command of symfony.

The event table looks like it should be, but the Appointment table doesn't have a creationUser column. The rest of the columns are available.
I also tried it with a OneToOne mapping, same issue. At the second level of inheritance these mappings are just missing.

Originally created by @doctrinebot on GitHub (May 4, 2011). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user toberger: I try to setup a class structure with a multilevel inheritance which is described here: http://pastebin.com/dDXAKN5M To generate the schema I use the "doctrine:schema:create" command of symfony. The event table looks like it should be, but the Appointment table doesn't have a creationUser column. The rest of the columns are available. I also tried it with a OneToOne mapping, same issue. At the second level of inheritance these mappings are just missing.
admin added the Bug label 2026-01-22 13:14:01 +01:00
admin closed this issue 2026-01-22 13:14:02 +01:00
Author
Owner

@doctrinebot commented on GitHub (May 14, 2011):

Comment created by @beberlei:

Your mappings are wrong the Event class needs additional @orm:InheritanceType and @orm:DiscriminatorMap annotations to describe the inheritance hierachy.

@doctrinebot commented on GitHub (May 14, 2011): Comment created by @beberlei: Your mappings are wrong the Event class needs additional @orm:InheritanceType and @orm:DiscriminatorMap annotations to describe the inheritance hierachy.
Author
Owner

@doctrinebot commented on GitHub (May 14, 2011):

Issue was closed with resolution "Invalid"

@doctrinebot commented on GitHub (May 14, 2011): Issue was closed with resolution "Invalid"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#1427