[PR #12065] Use enum values from enumType in DiscriminatorColumn and check DiscriminatorMap values against it #13451

Open
opened 2026-01-22 16:17:09 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/12065

State: closed
Merged: Yes


Fix for issue #11794.

Currently the values of enumType in DiscriminatorColumn are ignored which results in an error when generating a migration:

Doctrine\DBAL\Platforms\MySQL80Platform requires the values of a ENUM column to be specified.

Fixed by populating values from the enum and also prevent invalid entries in DiscriminatorMap.

**Original Pull Request:** https://github.com/doctrine/orm/pull/12065 **State:** closed **Merged:** Yes --- Fix for issue #11794. Currently the values of enumType in DiscriminatorColumn are ignored which results in an error when generating a migration: ``` Doctrine\DBAL\Platforms\MySQL80Platform requires the values of a ENUM column to be specified. ``` Fixed by populating values from the enum and also prevent invalid entries in DiscriminatorMap.
admin added the pull-request label 2026-01-22 16:17:09 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#13451