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

Closed
opened 2026-01-22 12:32:36 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (Dec 12, 2009).

Originally assigned to: @beberlei on GitHub.

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: GENERATOR_TYPE_auto constant

Originally created by @doctrinebot on GitHub (Dec 12, 2009). Originally assigned to: @beberlei on GitHub. 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: GENERATOR_TYPE_auto constant
admin added the Bug label 2026-01-22 12:32:36 +01:00
admin closed this issue 2026-01-22 12:32:37 +01:00
Author
Owner

@doctrinebot commented on GitHub (Dec 12, 2009):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Dec 12, 2009): Issue was closed with resolution "Fixed"
Author
Owner

@doctrinebot commented on GitHub (Dec 16, 2009):

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-
     strategy'.

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

@doctrinebot commented on GitHub (Dec 16, 2009): 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- strategy'. ``` Automatic validation and code completion /intellisense is one of the main big advantages of XML over YAML (and why I prefer it).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#259