Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow enum discriminator columns #10288

Merged

Commits on Dec 13, 2022

  1. Add support for enum discriminator columns

    This commit adds enumType option to DiscriminatorColumn as well as support for custom DBAL types which use PHP enums for PHP values.
    Previously, the enumType option was completely missing, but also even using custom types that used PHP enums would end up in exception because ObjectHydrator would try to convert enums to string using (string) explicit conversion.
    Apart from hydrators, ClassMetadataBuilder was extended to support specifying enumType.
    Documentation was updated.
    michnovka committed Dec 13, 2022
    Configuration menu
    Copy the full SHA
    497ee16 View commit details
    Browse the repository at this point in the history