DDC-206: XML Mapping Driver should be case-insensitive in regard to <generator type="" /> values. #2740

doctrinebot opened this Issue Dec 12, 2009 · 2 comments

2 participants


Jira issue originally created by user @beberlei:

Other Metadata drivers are case-insensitive for this value, XML is not. It generates a php warning for example for not finding: GENERATORTYPEauto constant


Issue was closed with resolution "Fixed"


Comment created by romanb:

The difference here is though, that lowercase in the XML does not even validate against the XSD. The XSD enforces an enumeration.

Example error message from eclipse:

    - cvc-enumeration-valid: Value 'auto' is not facet-valid with respect to enumeration '[TABLE, SEQUENCE, IDENTITY, AUTO]'. It must 
     be a value from the enumeration.
    - cvc-attribute.3: The value 'auto' of attribute 'strategy' on element 'generator' is not valid with respect to its type, 'generator-

Automatic validation and code completion /intellisense is one of the main big advantages of XML over YAML (and why I prefer it).

@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot added this to the 2.0-ALPHA4 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment