Doctrine 1
  1. Doctrine 1
  2. DC-833

Data type in YAML schema spacing issue

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.1
    • Fix Version/s: None
    • Component/s: Schema Files
    • Labels:
      None
    • Environment:
      Windows 7, Apache 2.2.11, PHP 5.2.9, MySQL 5.1.36

      Description

      When creating a column in a table in a YAML schema file, the following two scenarios produce different results:

      Model:
      columns:
      ...
      some_numeric:
      type: integer(3)
      ....
      __________________________
      Model:
      columns:
      ...
      some_numeric:
      type: integer (3)
      ....

      Please note the spacing in the second example before the (3) in the type definition. The first example will generate a mediumint in MySQL with a length other than 3, while the second example works as expected.

        Activity

        Hide
        Danny Kopping added a comment -

        The formatting for the YAML didn't come out right through JIRA, I apologize for that

        Show
        Danny Kopping added a comment - The formatting for the YAML didn't come out right through JIRA, I apologize for that

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Danny Kopping
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: