As you know, Doctrine does not understand the MySQL enum type. When generating entities, an error occurs:

Unknown database type enum requested, Doctrine \ DBAL \ Platforms \ MySqlPlatform may not support it.

Found a code that represents all enum fields as string

 return [ 'doctrine' => [ 'connection' => [ 'orm_default' => [ 'driverClass' => 'Doctrine\DBAL\Driver\PDOMySql\Driver', 'params' => [ 'host' => 'localhost', 'port' => '3306', 'user' => 'username', 'password' => 'password', 'dbname' => 'DevBrew', ], // To automatically convert enum to string 'doctrine_type_mappings' => [ 'enum' => 'string' ], ] ] ] ]; 

There is a Doctrine documentation which describes the process of creating a "own type" column.

The question is, how after creating this type, register it in the configuration?

    0