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

Use enum values from enumType in DiscriminatorColumn and check DiscriminatorMap values against it #11804

Open
wants to merge 3 commits into
base: 3.4.x
Choose a base branch
from

Conversation

whataboutpereira
Copy link

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.

@whataboutpereira
Copy link
Author

I'm unsure where to go from here. It seems to me tests are failing on platforms with no native enum support.

@derrabus
Copy link
Member

derrabus commented Jan 25, 2025

I'm unsure where to go from here. It seems to me tests are failing on platforms with no native enum support.

No, the tests are failing on DBAL versions without EnumType.

@derrabus derrabus changed the base branch from 3.3.x to 3.4.x January 25, 2025 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants