mirror of
https://github.com/doctrine/orm.git
synced 2026-04-24 06:58:19 +02:00
DDC-806: XSD requires an id element before the first field element #993
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Sep 15, 2010).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user m.strehl:
The entity element in doctrine-mapping.xsd requires an element id in front of the first element field.
This leads to invalid XML files, where a inherited class doesn't need an ID on its own, but inherits one from its parent.
In the examples in the documentation,
http://www.doctrine-project.org/projects/orm/2.0/docs/reference/xml-mapping/en#xml-element-reference:defining-fields
the code, too, has no id element in front of the first field elements.
A minimal example, showing the inheritance problem, too, is attached. The validation error occurs on the field element of the "Cat" entity.