JMSSerializerBundle. no control over third party meta data

I bet xxx\xxx\Entity\User: refers to your own namespace and class. If it is, it is the wrong way to do. The rules must be applied to the class where the properties live. Given the property you exposed in your configuration, I guess you’re using FOSUserBundle. Therefore, you must apply your rules on FOS\UserBundle\Model\User. Then you … Read more