Jms serializer annotations as yaml file
<p>I've been working on <code>User</code> class inherited from <code>BaseUser</code> of <code>FOSUserBundle</code>, so I've faced a problem. I need to set up serialization for my <code>User</code> but JMS serializer serializes all properties of <code>BaseUser</code>.
Solution that I found was to create my own annotation for <code>BaseUser</code> and store it in yaml file, but I don't know how exactly should I do this.</p>