JMS Serializer not serializing child classes JMS Serializer not serializing child classes symfony symfony

JMS Serializer not serializing child classes


You should check if you not mix serializer defined by annotations and that with .yml files. That often make hardly to debug troubles.


in child class try changing

@JMS\ExclusionPolicy("none")

to

@JMS\ExclusionPolicy("all")

the "none" is messing with @Groups