Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use doctrine type of "json_array" for JSON columns #17344

Closed
wants to merge 1 commit into from
Closed

Use doctrine type of "json_array" for JSON columns #17344

wants to merge 1 commit into from

Conversation

maddhatter
Copy link
Contributor

Doctrine doesn't have a JSON type, it calls it JSON_ARRAY.

Currently, trying to change() a JSON column results in this error:

[Doctrine\DBAL\DBALException]
  Unknown column type "json" requested. Any Doctrine type that you use has to be registered with \Doctrine\DBAL\Types\Type::addType(). You can get a list of all the known types with \Doctrine\DBAL\Types\Type::getTypesMap(). If this er
  ror occurs during database introspection then you might have forgot to register all database types for a Doctrine Type. Use AbstractPlatform#registerDoctrineTypeMapping() or have your custom types implement Type#getMappedDatabaseTyp
  es(). If the type name is empty you might have a problem with the cache or forgot some mapping information.

This change resolves the issue.

@taylorotwell
Copy link
Member

Please send to 5.4 branch.

@maddhatter maddhatter changed the base branch from 5.3 to 5.4 January 15, 2017 17:03
@maddhatter maddhatter changed the base branch from 5.4 to 5.3 January 23, 2017 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants