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

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

Share your love
Kieron Howard
Kieron Howard
Articles: 53

Leave a Reply

Your email address will not be published. Required fields are marked *