In this section of the Symfony documentation:
https://symfony.com/doc/current/doctrine/dbal.html#registering-custom-mapping-types-in-the-schematool
the config
doctrine:
dbal:
mapping_types:
enum: string
no longer works with Doctrine DBAL 4.x.
With DBAL 4.x, mapping enum to string requires a length, otherwise migrations fails. (see also doctrine/dbal#7036 )
Since Symfony users may still be on DBAL < 4, the example might still be relevant — but it would be helpful to add a note explaining the changed behavior in DBAL 4.x and the existence of the native enum type.
In this section of the Symfony documentation:
https://symfony.com/doc/current/doctrine/dbal.html#registering-custom-mapping-types-in-the-schematool
the config
no longer works with Doctrine DBAL 4.x.
With DBAL 4.x, mapping enum to string requires a length, otherwise migrations fails. (see also doctrine/dbal#7036 )
Since Symfony users may still be on DBAL < 4, the example might still be relevant — but it would be helpful to add a note explaining the changed behavior in DBAL 4.x and the existence of the native enum type.