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

前端 未结 5 2442
青春惊慌失措
青春惊慌失措 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:41

    try this:

    /**
     * @Route("/gatherplayer/{player_name}/{gather_id}")
     * @ParamConverter("player", class="YourBundle:Player")
     * @ParamConverter("gather", class="YourBundle:Gather")
     * @Template()
     */
    public function createAction(Player $player, Gather $gather)
    

提交回复
热议问题