[12.x] Handle Enum::cases() for enum column type#56565
Conversation
There was a problem hiding this comment.
Migrations are intended to be non-dependent on other application code that is prone to change as this may break the migration at a later date. So, this is probably not what most devs want. What would work better, though, would be kind of a stub that would prefill the migration with the hard-coded enum values from that point.
I see this differently. There are already some methods – like For me, the migrations are part of the same application as the enums or the models. |
This PR adds a small modification due to the
enummethod in migrations, to make the development a bit more streamlined.Normally this PR has no breaking change, since the
enum_valueworks with non-enums as well, returning the original value.