DDC-628: Doctrine 2: precission and scale not allowed by XML schema #776

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

Originally created by @doctrinebot on GitHub (Jun 9, 2010).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user frantisek.troster:

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

Originally created by @doctrinebot on GitHub (Jun 9, 2010). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user frantisek.troster: 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
admin added the Bug label 2026-01-22 12:50:01 +01:00
admin closed this issue 2026-01-22 12:50:02 +01:00
Author
Owner

@doctrinebot commented on GitHub (Jun 13, 2010):

Comment created by @beberlei:

Fixed

@doctrinebot commented on GitHub (Jun 13, 2010): Comment created by @beberlei: Fixed
Author
Owner

@doctrinebot commented on GitHub (Jun 13, 2010):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Jun 13, 2010): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#776