Skip to content

[Doctrine] DBAL ENUM documentation is outdated for DBAL 4.2+ #22243

@bt-nn

Description

@bt-nn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions