enum
enum copied to clipboard
Enum mapping aware service
It would be great to have a service that knows which field of which class uses which enum. This could be used by a twig extension that would then retrieve the right label for a value stored in such a field, and translate it (optionally, if translation is enabled), using the class name to build the catalog name by default.
Ref: https://github.com/greg0ire/enum/pull/34#discussion_r68023053