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 -
        Hide
        Benjamin Eberlei added a comment -

        Fixed, scheduled for 2.0.6

        Show
        Benjamin Eberlei added a comment - Fixed, scheduled for 2.0.6
        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 ]

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DDC-1208, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

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

            Dates

            • Created:
              Updated:
              Resolved: