DDC-673: yaml metadata allows integer(X) types but ignores the X #827

Closed
opened 2026-01-22 12:51:55 +01:00 by admin · 5 comments
Owner

Originally created by @doctrinebot on GitHub (Jul 7, 2010).

Jira issue originally created by user gnat:

When using the yaml mapping driver, it is possible (and in fact used by the yaml exporter) to have type: integer(X). doctrine never complains, however it always creates mysql int(11) fields regardless of the X. It should either cause an error at some point (like it does in the annotation driver according to romanb) or observe the X when creating the integer size.

Originally created by @doctrinebot on GitHub (Jul 7, 2010). Jira issue originally created by user gnat: When using the yaml mapping driver, it is possible (and in fact used by the yaml exporter) to have type: integer(X). doctrine never complains, however it always creates mysql int(11) fields regardless of the X. It should either cause an error at some point (like it does in the annotation driver according to romanb) or observe the X when creating the integer size.
admin added the Bug label 2026-01-22 12:51:55 +01:00
admin closed this issue 2026-01-22 12:51:56 +01:00
Author
Owner

@doctrinebot commented on GitHub (Jul 17, 2010):

Comment created by shurakai:

I think we should throw an error in that case and change the yaml exporter to observe this rule.

Roman, would that be okay? If so, I'll try to fix it before the next beta.

@doctrinebot commented on GitHub (Jul 17, 2010): Comment created by shurakai: I think we should throw an error in that case and change the yaml exporter to observe this rule. Roman, would that be okay? If so, I'll try to fix it before the next beta.
Author
Owner

@doctrinebot commented on GitHub (Jul 28, 2010):

Comment created by romanb:

Yes, I guess that would be fine.

@doctrinebot commented on GitHub (Jul 28, 2010): Comment created by romanb: Yes, I guess that would be fine.
Author
Owner

@doctrinebot commented on GitHub (Oct 6, 2010):

Comment created by @beberlei:

Fixed

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

@doctrinebot commented on GitHub (Oct 6, 2010):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Oct 6, 2010): Issue was closed with resolution "Fixed"
Author
Owner

@doctrinebot commented on GitHub (Dec 13, 2015):

Imported 1 attachments from Jira into https://gist.github.com/35c1dbf8b6ae1f4c9a06

@doctrinebot commented on GitHub (Dec 13, 2015): Imported 1 attachments from Jira into https://gist.github.com/35c1dbf8b6ae1f4c9a06 - [10693_Account.dcm.yml](https://gist.github.com/35c1dbf8b6ae1f4c9a06#file-10693_Account-dcm-yml)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#827