DDC-690: Unable to define mapped superclass in XML #851

Closed
opened 2026-01-22 12:52:40 +01:00 by admin · 4 comments
Owner

Originally created by @doctrinebot on GitHub (Jul 14, 2010).

Jira issue originally created by user frantisek.troster:

Hi,

I am unable to find mapped superclass definition for XML and YML. I would
like to define the same schema as seen at:

http://www.doctrine-project.org/documentation/manual/2_0/en/inheritan...

But I can't see needed XML elements in the XML schema. I've found only
for defining superclass but not an element or
attribute in the entity element to define inherited class. If you know
how to define this in XML, could you please also show me an example
how to define it in YAML. Thank you

Frantisek Troster

Originally created by @doctrinebot on GitHub (Jul 14, 2010). Jira issue originally created by user frantisek.troster: Hi, I am unable to find mapped superclass definition for XML and YML. I would like to define the same schema as seen at: http://www.doctrine-project.org/documentation/manual/2_0/en/inheritan... But I can't see needed XML elements in the XML schema. I've found only <mapped-superclass> for defining superclass but not an element or attribute in the entity element to define inherited class. If you know how to define this in XML, could you please also show me an example how to define it in YAML. Thank you Frantisek Troster
admin added the Bug label 2026-01-22 12:52:40 +01:00
admin closed this issue 2026-01-22 12:52:42 +01:00
Author
Owner

@doctrinebot commented on GitHub (Jul 14, 2010):

Comment created by romanb:

There is nothing extra needed. The XML Schema definition is as follows:

<xs:complexType name="mapped-superclass">
−
<xs:complexContent>
<xs:extension base="orm:entity"/>
</xs:complexContent>
</xs:complexType>

Doctrine does currently not need inheritance information about mapped superclasses or non-mapped classes in mapping files. The necessary inheritance information is read from the classes themselves.

@doctrinebot commented on GitHub (Jul 14, 2010): Comment created by romanb: There is nothing extra needed. The XML Schema definition is as follows: ``` <xs:complexType name="mapped-superclass"> − <xs:complexContent> <xs:extension base="orm:entity"/> </xs:complexContent> </xs:complexType> ``` Doctrine does currently not need inheritance information about mapped superclasses or non-mapped classes in mapping files. The necessary inheritance information is read from the classes themselves.
Author
Owner

@doctrinebot commented on GitHub (Jul 14, 2010):

Comment created by frantisek.troster:

Thank you for the answer.

Frantisek Troster

@doctrinebot commented on GitHub (Jul 14, 2010): Comment created by frantisek.troster: Thank you for the answer. Frantisek Troster
Author
Owner

@doctrinebot commented on GitHub (Aug 7, 2010):

Comment created by romanb:

Marking this as resolved. If there are remaining issues please report back.

@doctrinebot commented on GitHub (Aug 7, 2010): Comment created by romanb: Marking this as resolved. If there are remaining issues please report back.
Author
Owner

@doctrinebot commented on GitHub (Aug 7, 2010):

Issue was closed with resolution "Invalid"

@doctrinebot commented on GitHub (Aug 7, 2010): 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#851