“App\Entity\User object not found by the @ParamConverter annotation”
问题 I have a problem with one of my route when I try to access it, I have this error : "App\Entity\CompanyUser object not found by the @ParamConverter annotation" Many people have the same problem but none of the solutions I could see could solve my problem. My function edit : private $passwordEncoder; public function __construct(UserPasswordEncoderInterface $passwordEncoder) { $this->passwordEncoder = $passwordEncoder; } /** * @Route("/{id}/edit", name="company_user_edit", methods={"GET","POST"}