Select Page

Importing pre-existing MySQL DB using Doctrine in Symfony2 I came across this error:

[DoctrineDBALDBALException]
Unknown database type enum requested, DoctrineDBALPlatformsMySqlPlatform
may not support it.

The fix was found within the Symfony2 Docs

To app/config/config.yml just under your connection info add:

mapping_types:
enum: string

%d bloggers like this: