Open yusleyorea opened 7 years ago
Lionframe is based on jmsserializer, so probably you will need to look for an answer in theirs documentation.
Unfortunately, mappings are not inherited. If you want to change a default FOSUser model mapping, you have to define custom mapping in config file, and then change definition for this model only.
jms_serializer:
metadata:
directories:
fos-user:
namespace_prefix: "FOS\\UserBundle\\Model"
path: "@AppBundle/Resources/config/serializer/fos"
Then in src/AppBundle/Resources/config/serializer/fos
you can adjust your configuration.
Anyway, please ask such question on stackoverflow.
I'm trying to manipulate an attached entity representing the files with a document entity, but can not find how to do it from the documentation in http://lakion.com/lionframe. Is there any tutorial or example where it can guide me.
Another thing, I'm trying to set the serialization of an entity that inherits from FOSUser model, to not display the password field among others, but it does not work either :-( looks so my yml:
I am also try removing filds with expose false, but it always get all fields from the both entities.