You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Symfony 5.4 supports an EnumType Field in its forms: https://symfony.com/doc/5.4/reference/forms/types/enum.html It would be nice to be able to map this to an entity as-is. Right now, you need to manually transform the Enum object to its backed string (or int). So far, I see three ways to achieve this:
Feature Request
Summary
Symfony 5.4 supports an
EnumType
Field in its forms: https://symfony.com/doc/5.4/reference/forms/types/enum.html It would be nice to be able to map this to an entity as-is. Right now, you need to manually transform theEnum
object to its backedstring
(orint
). So far, I see three ways to achieve this:So instead of having each user figure this out themselves, I'm suggesting to add two new types:
enum_string
andenum_int
.The text was updated successfully, but these errors were encountered: