Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-206

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

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-ALPHA3
    • Fix Version/s: 2.0-ALPHA4
    • Component/s: Mapping Drivers
    • Security Level: All
    • Labels:
      None

      Description

      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

        Activity

        Hide
        Roman S. Borschel added a comment - - edited

        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).

        Show
        Roman S. Borschel added a comment - - edited 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).

          People

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

            Dates

            • Created:
              Updated:
              Resolved: