Open Jerome1337 opened 8 years ago
i am working on the same config perhabse you have probleme with exclusion_policy: NONE that overwrite exclusion_policy: ALL
I have a question for you relating the group configuration groups: [list, details] is this configuration work for you? because i use the same list, details and nothing work :(
The issue is that you have a duplicate key PowerDNSBundle\Entity\PowerDNSDomain
in your YAML file, which does not work (same than duplicate keys in PHP arrays don't work).
@tuxado Yes this is working well in my project, I just use add a group to my serialization context with something like this
$view->getSerializationContext()->setGroups('list');
I'm using
JMSSerializerBundle
withFOSRestBundle
.I use the
yml
reference to serialize datas on a given class but I have to use another config for a method inside this class but I can't createyml
config file for a method.This is possible to do this with the YAML reference ?
Thank