File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -864,7 +864,8 @@ control behavior:
864
864
Mapped Route Parameters
865
865
~~~~~~~~~~~~~~~~~~~~~~~
866
866
867
- When many route parameters are used to find more than one entity, it is mandatory to use #[MapEntity] attributes and this can become cumbersome::
867
+ When many route parameters are used to find more than one entity,
868
+ it is mandatory to use #[MapEntity] attributes and this can become cumbersome::
868
869
869
870
#[Route('/document/{slug}/{id}-{name}/')]
870
871
public function showDocument(
@@ -918,7 +919,7 @@ In this case we have to return to MapEntiy::
918
919
// $category = $categoryRepository->findOneBy(['slug' => 'the slug category']);
919
920
}
920
921
921
- As an alternative, tou can use ``Aliased Mapped Route Parameters ``.
922
+ As an alternative, you can use ``Aliased Mapped Route Parameters ``.
922
923
923
924
When adding route parameters, you can now define the mapping between the route parameter and the controller argument with an alias::
924
925
You can’t perform that action at this time.
0 commit comments