mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-673: yaml metadata allows integer(X) types but ignores the X #827
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
@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 28, 2010):
Comment created by romanb:
Yes, I guess that would be fine.
@doctrinebot commented on GitHub (Oct 6, 2010):
Comment created by @beberlei:
Fixed
@doctrinebot commented on GitHub (Oct 6, 2010):
Issue was closed with resolution "Fixed"
@doctrinebot commented on GitHub (Dec 13, 2015):
Imported 1 attachments from Jira into https://gist.github.com/35c1dbf8b6ae1f4c9a06