Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DDC-806: XSD requires an id element before the first field element #5323

Closed
doctrinebot opened this issue Sep 15, 2010 · 3 comments
Closed
Assignees
Labels
Milestone

Comments

@doctrinebot
Copy link

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.

@doctrinebot
Copy link
Author

Comment created by @beberlei:

Fixed

@doctrinebot
Copy link
Author

Issue was closed with resolution "Fixed"

@doctrinebot doctrinebot added this to the 2.0-RC1 milestone Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
@doctrinebot
Copy link
Author

Imported 1 attachments from Jira into https://gist.github.com/86af8d11c938e1967c01

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants