0

I have the following action:

/**
 * @param Agent $agent
 * @Post("/agents")
 * @ParamConverter(class="DnDRaHApiBundle:Agent")
 */
public function postAction(Agent $agent)
{

  //return $request->request->all();
}

But when I hit the url with a post request and a json body, I get this error:

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

What can I do to fix this, I've spent now a few hours in this. Documentation is really poor.

Thanks.

wogsland
  • 9,106
  • 19
  • 57
  • 93
danielrvt
  • 10,177
  • 20
  • 80
  • 121

0 Answers0