schmittjoh / JMSSerializerBundle

Easily serialize, and deserialize data of any complexity (supports XML, JSON, YAML)
http://jmsyst.com/bundles/JMSSerializerBundle
MIT License
1.8k stars 311 forks source link

Overriding Third-Party Metadata #482

Open tranthienbinh1989 opened 9 years ago

tranthienbinh1989 commented 9 years ago

I am trying to override User model from FosUserBundle. And I followed the document to add a yaml file for user model. But It doesn't work.

Here is my code:

jms_serializer: metadata: auto_detection: true directories:

FOS\UserBundle\Model\User: exclusion_policy: ALL properties : username : expose : true

/ping @schmittjoh

qlombat commented 8 years ago

Have you found a solution? I have the same problem and I do not find solution.