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

About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 27 (17 by maintainers)
Links to this issue
Commits related to this issue
- bug #460 Controller arguments with default values should be default optional (chalasr) This PR was merged into the 3.0 branch. Discussion ---------- Controller arguments with default values should ... — committed to sensiolabs/SensioFrameworkExtraBundle by fabpot 7 years ago
- bug #460 Controller arguments with default values should be default optional (chalasr) This PR was merged into the 3.0 branch. Discussion ---------- Controller arguments with default values should ... — committed to artem0723/React-Clothing-Shop by fabpot 7 years ago
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).