@ParamConverter("user",class="AcmeDemoBundle:User")查询报错
/**
* @Route("/edit/{id}")
* @ParamConverter("user",class="AcmeDemoBundle:User")
*/
public function editAction(User $user){
return new Response($user->getUsername());
}
/**
* @Route("/edit/{id}")
* @ParamConverter("user",class="AcmeDemoBundle:User")
*/
public function editAction(User $user){
return new Response($user->getUsername());
}
2016-05-05
举报