Skip to content


DBAL-42: Use column comments for further Doctrine Type Inference #1614

doctrinebot opened this Issue · 4 comments

2 participants


Jira issue originally created by user @beberlei:

Any custom type could use vendors column comment functionalities to allow more details on the specific type of a column that can be used inside the "listTableColumns()" method.


Comment created by @beberlei:

MySQL, postfix column with "COMMENT 'The KEY obviously'"

Postgres, COMMENT syntax (another SQL statement, narf!):

Oracle, COMMENT syntax (another SQL statement):

Sqlite: Nada

Mssql: (woah this is ugly)


Comment created by @beberlei:

Implemented for Oracle, PostgreSQL and MySQL.

Now for Array and Object types a Column Comment is appended of the format "(DC2Type:$type)" which is parsed when reading from the database.


Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.1 milestone
@doctrinebot doctrinebot closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.