Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-806

XSD requires an id element before the first field element

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0-BETA4
    • Fix Version/s: 2.0-RC1
    • Component/s: Mapping Drivers
    • Security Level: All
    • Labels:
      None
    • Environment:
      Win XP + Cygwin, validating with xmlstar and xmllint

      Description

      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.

        Activity

        Hide
        Benjamin Eberlei added a comment -

        Fixed

        Show
        Benjamin Eberlei added a comment - Fixed

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Manuel Strehl
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: