Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-628

Doctrine 2: precission and scale not allowed by XML schema

    Details

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

      Description

      Hi,

      I've found the scale and precision column/field attributes are not allowed by XML schema at http://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd:

      <xs:complexType name="field">
      <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
      <xs:attribute name="type" type="xs:NMTOKEN" default="string" />
      <xs:attribute name="column" type="xs:NMTOKEN" />
      <xs:attribute name="length" type="xs:NMTOKEN" />
      <xs:attribute name="unique" type="xs:boolean" default="false" />
      <xs:attribute name="nullable" type="xs:boolean" default="false" />
      <xs:attribute name="version" type="xs:boolean" />
      <xs:attribute name="column-definition" type="xs:string" />
      </xs:complexType>

      but these attributes are referred in the documentation:

      http://www.doctrine-project.org/projects/orm/2.0/docs/reference/annotations-reference/en#reference:@column

      Is scale and precision allowed in Doctrine 2? Thank you

        Activity

        Hide
        Benjamin Eberlei added a comment -

        Fixed

        Show
        Benjamin Eberlei added a comment - Fixed

          People

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

            Dates

            • Created:
              Updated:
              Resolved: