Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-673

yaml metadata allows integer(X) types but ignores the X

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0-BETA2
    • Fix Version/s: 2.0-RC1
    • Component/s: None
    • Security Level: All
    • Labels:
      None
    • Environment:
      Fedora 13, php 5.3.2, apache mysql etc.

      Description

      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.

        Activity

        Hide
        Christian Heinrich added a comment -

        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.

        Show
        Christian Heinrich added a comment - 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.
        Hide
        Roman S. Borschel added a comment -

        Yes, I guess that would be fine.

        Show
        Roman S. Borschel added a comment - Yes, I guess that would be fine.
        Hide
        Benjamin Eberlei added a comment -

        Fixed

        Show
        Benjamin Eberlei added a comment - Fixed

          People

          • Assignee:
            Christian Heinrich
            Reporter:
            Nathanael Noblet
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: