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

Closed
opened 2026-01-22 12:26:39 +01:00 by admin · 2 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:39 +01:00
admin closed this issue 2026-01-22 12:26:40 +01:00
Author
Owner

@doctrinebot commented on GitHub (Nov 11, 2009):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Nov 11, 2009): Issue was closed with resolution "Fixed"
Author
Owner

@doctrinebot commented on GitHub (Dec 13, 2015):

Imported 1 attachments from Jira into https://gist.github.com/8df5a3985d02170a5f6b

@doctrinebot commented on GitHub (Dec 13, 2015): Imported 1 attachments from Jira into https://gist.github.com/8df5a3985d02170a5f6b - [10118_column_alias_patch.patch](https://gist.github.com/8df5a3985d02170a5f6b#file-10118_column_alias_patch-patch)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#87