DDC-72: column alias not recognized in ConvertDoctrine1Schema #85

Open
opened 2026-01-22 12:26:36 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Oct 29, 2009).

Originally assigned to: @jwage on GitHub.

Jira issue originally created by user chriswest:

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.

Originally created by @doctrinebot on GitHub (Oct 29, 2009). Originally assigned to: @jwage on GitHub. Jira issue originally created by user chriswest: 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.
admin added the Bug label 2026-01-22 12:26:36 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#85