Serialization of UploadedFile is not allowed
问题 I'm trying to upload a file via vichuploader bundle on my Users entity. Using hwioauthbundle that implements UserInterface, and i think the errors comes from that bundle... So every time i try to uplod a file i got this exception : Serialization of 'Symfony\Component\HttpFoundation\File\UploadedFile' is not allowed I already tried this solution but also same exception. namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; use HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface;