Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-72

column alias not recognized in ConvertDoctrine1Schema

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-ALPHA2
    • Fix Version/s: 2.0-ALPHA3
    • Component/s: ORM, Tools
    • Security Level: All
    • Labels:
      None

      Description

      The syntax for column aliases used in D1 is not recognized "column_name as field_name". This produces fatal errors when converting D1 YAML -> D2 YAML -> D2 Annotations.

      D1 yaml:

      xcoord as x:
              type: integer(3)
              unsigned: true
              notnull: true
      

      converted D2 yaml:

      xcoord as x:
              type: integer(3)
              unsigned: true
              notnull: true
      

      expected output:

      x:
            columnName: xcoord
            type: integer(3)
            notnull: true
      

      patch attached.

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: