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

        Bob Pupazzoni created issue -
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.0.6 [ 10140 ]
        Resolution Fixed [ 1 ]
        Benjamin Eberlei made changes -
        Workflow jira [ 12715 ] jira-feedback [ 14902 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 14902 ] jira-feedback2 [ 16766 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 16766 ] jira-feedback3 [ 19019 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: