Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1208

doctrine-mapping.xsd does not allow for namespacing in discriminator-mapping element

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: Git Master
    • Fix Version/s: 2.0.6
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None
    • Environment:
      Ay

      Description

      The XSD type for the 'class' attribute in the 'discriminator-mapping' element is 'xs:NMTOKEN'. But this does not allow the '\' characters used for PHP namespacing. The 'type' should instead be changed to 'xs:string' as shown below:

      <xs:complexType name="discriminator-mapping">
      <xs:sequence>
      <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
      </xs:sequence>
      <xs:attribute name="value" type="xs:NMTOKEN" use="required"/>
      <xs:attribute name="class" type="xs:string" use="required"/>
      <xs:anyAttribute namespace="##other"/>
      </xs:complexType>

        Activity

        Hide
        Benjamin Eberlei added a comment -

        Fixed, scheduled for 2.0.6

        Show
        Benjamin Eberlei added a comment - Fixed, scheduled for 2.0.6

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Bob Pupazzoni
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: