I'm trying to add the "enum" type to my symfony2 dbal connection, but I can't find a way to do it.
doctrine:
dbal:
mapping_types:
enum: string
default_connection: default
connections:
default:
driver: "%database_driver%"
host: "%database_host%"
port: "%database_port%"
dbname: "%database_name%"
user: "%database_user%"
password: "%database_password%"
charset: UTF8
connection2:
driver: "%database2_driver%"
host: "%database2_host%"
port: "%database2_port%"
dbname: "%database2_name%"
user: "%database2_user%"
password: "%database2_password%"
charset: LATIN1
This is my config right now and I'm getting the error:
[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
Unrecognized option "mapping_types" under "doctrine.dbal"
I also tried to place it beneath the connection2 and removed the default_connection since I found answers that solved the problem like this. But these questions haven't had multiple connections.