yethee/BiplaneEnumBundle

Serializing FlaggedEnum just returns the value

lucasgranberg opened this issue · 1 comments

All it seems to do is return the value. That might be fine for Enum but wouldn't it be better if FlaggedEnum returned a array of all flags it has?

You can get an array of flags from enum value by getFlags() method, if your enum type is inherited from Biplane\EnumBundle\Enumeration\FlaggedEnum