Unable to guess how to get a Doctrine instance from the request information

前端 未结 5 2429
青春惊慌失措
青春惊慌失措 2021-02-18 17:16

I\'ve got this \"500 Internal Server Error - LogicException: Unable to guess how to get a Doctrine instance from the request information\".

Here is my c

5条回答
  •  花落未央
    2021-02-18 17:49

    The parameters on the signature of the @Route annotation must match the entities fields, so that Doctrine makes automatically the convertion.

    Otherwise you need to do the convertion manually by using the annotation @ParamConverter as it's mentionned on the other responses.

提交回复
热议问题