Open edouardkombo opened 9 years ago
I get this error:
Could not find class FOS\UserBundle\Model\User inside XML element
I know it's an old issue, but if someone is getting this error, simply put this code inside your Model.User.xml file:
<class name="FOS\UserBundle\Model\User" exclusion-policy="all" xml-root-name="user">
</class>
To add some extra information "just in case", I had to extend both config files: Model.User.xml and Entity.User.xml. Inside the first one I configured Sonata and FOS entities fields and inside the second one my custom user entity fields.
Hi,
I'm stucked since four days with a strange issue, this is my yml config of Jms Serializer (1.0.0). I need to override the FOSUserBundle serializer to apply some constraints to the user api.
Inside the SonataUserBundle, I've overrided "Application/Sonata/UserBundle/Resources/config/serializer/FOSUserBundle/Model.User.xml"
Inside my JMSSerializer, I can access FOSUserBundle user properties with no problems.
But, when I target my own xml serializer (Application/Sonata/UserBundle/Resources/config/serializer/FOSUserBundle/) properties, with this configuration.
I get this error:
Then, when I change the namespace prefix, like this.
I get this error:
}
This last error is shown no matter what kind of other namespace or path I write.
This is my Application/Sonata/UserBundle/Resources/config/serializer/FOSUserBundle/Model.User.xml file
Does anyone encountered the same problem, or can simply guide me through the light?