I tried to add to jms serializer to encode Doctrine entities to given _format such as json , xml or html with fosrestcontroller but there's something absolutely wrong and I still couldn't figure out :tired_face:
there was some other ways which i tried such as convert Doctrine entities to string -> json_encode or something like that -> return with in response or twig views to render but there are not giving multiple _format choice to get them.
Could you find out what's wrong there, please? @hasantayyar
I tried to add to
jms serializer
to encode Doctrine entities to given_format
such asjson
,xml
orhtml
withfosrestcontroller
but there's something absolutely wrong and I still couldn't figure out :tired_face:there was some other ways which i tried such as
convert Doctrine entities to string -> json_encode or something like that -> return with in response
ortwig views to render
but there are not giving multiple _format choice to get them.Could you find out what's wrong there, please? @hasantayyar