schmittjoh/JMSSerializerBundle — Issue #60: Serialization groups
Author: Seldaek
Created: 2011-12-18 12:18:48+00:00
State: open

As pointed out in https://github.com/schmittjoh/JMSSerializerBundle/pull/54#issuecomment-3092156 - having the possibility to define groups in Exclude and Expose much like validation groups work in Sf2 would be good:

`@Expose(groups={"user"})` means that the property would only be exposed if the group `user` is enabled. The serializer should allow multiple groups to be used at the same time. By default everything uses, and falls into, the "Default" group.