[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



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:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
<xs:attribute name="value" type="xs:NMTOKEN" use="required"/>
<xs:attribute name="class" type="xs:string" use="required"/>
<xs:anyAttribute namespace="##other"/>

Comment by Benjamin Eberlei [ 15/Jun/11 ]

Fixed, scheduled for 2.0.6

Generated at Wed Nov 25 11:30:36 EST 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.