symfony: [ParamConverter] Unable to guess how to get a Doctrine instance from the request information

Q A
Bug report? yes
Feature request? no
BC Break report? yes
RFC?
Symfony version 3.2.3

This happen after the last update from Symfony 3.2.2 to 3.2.3 In my action i have multiple routes like below


 /**
     * @Route("/my-route", name="first_route", defaults={"type" = null})
     * @Route("/my-route/report/{objectId}/{startDate}/{endDate}", name="second_route", defaults={"type" = null})
     * @Route("/my-route/{objectId}/{startDate}/{endDate}/{type}", name="third_route", defaults={"type" = null})
     * @ParamConverter(name="object", Class="MyBundle:MyObjectClass")
     */
    public function indexAction(Request $request, $object = null, $startDate = null, $endDate = null, $type)
    {
// Logic
}

if i try to access to the page with the route /my-route i get the below exception

screen shot 2017-02-08 at 10 11 18 am

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 27 (17 by maintainers)

Commits related to this issue

Most upvoted comments

To add to my question: Can you check if your issue is caused by sensiolabs/SensioFrameworkExtraBundle@bd7e329d99d01acbc36876b14c916cfefdee6d26 which was fixed by sensiolabs/SensioFrameworkExtraBundle@ed86f6fb1753e76b39ff8b87f527045ca6b97169 (and is part of version 3.0.21).