-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
MySQL80Platform requires the values of a ENUM column to be specified when using enum DiscriminatorColumn #11794
Comments
We indeed don't support extracting the enum cases in discriminator columns yet, but I don't see why we shouldn't. Do you want to work on this feature? |
It turned out easier to get working than I expected. I'm not sure how to go about testing it though. |
You can have a look at our existing functional test suite. You would basically create an entity model that reproduces your problem and write code that persists and fetches data using that model. |
Added tests now as well. |
Using enum in DiscriminatorColumn:
When generating a migration, this yields:
I see
AbstractMySQLPlatform.php->getEnumDeclarationSQL()
receives these (first one has values populated, second one has no values, but enumType is specified, that the first one doesn't have):The text was updated successfully, but these errors were encountered: