[DDC-1208] doctrine-mapping.xsd does not allow for namespacing in discriminator-mapping element Created: 15/Jun/11  Updated: 15/Jun/11  Resolved: 15/Jun/11

Status: Resolved
Project: Doctrine 2 - ORM
Component/s: ORM
Affects Version/s: Git Master
Fix Version/s: 2.0.6
Security Level: All

Type: Bug Priority: Minor
Reporter: Bob Pupazzoni Assignee: Benjamin Eberlei
Resolution: Fixed Votes: 0
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>



 Comments   
Comment by Benjamin Eberlei [ 15/Jun/11 ]

Fixed, scheduled for 2.0.6

Generated at Sat Nov 22 16:50:57 UTC 2014 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.