I have a route that needs to grab a category and then a subcategory with a route looking like this:
#[Route('/{slug}/{subSlug}', name: 'subcategory')]
#[Entity('category', expr: 'repository.findOneBySlug(slug)')]
#[Entity('subcategory', expr: 'repository.findOneBySlug(subSlug)')]
public function subcat(Category $cat, Subcategory $sub): Response
I try to go to /mtg/dmr and I get a 404 object not found by @ParamConverter.
When I look in the profiler at the Doctrine logs, the system is looking in the right tables, but for both looking for mtg instead of first mtg and then dmr. Any ideas what's going on here?