Skip to content

Commit 36cdca5

Browse files
committed
corrections
1 parent e37a9dc commit 36cdca5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doctrine.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,8 @@ control behavior:
864864
Mapped Route Parameters
865865
~~~~~~~~~~~~~~~~~~~~~~~
866866

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::
868869

869870
#[Route('/document/{slug}/{id}-{name}/')]
870871
public function showDocument(
@@ -918,7 +919,7 @@ In this case we have to return to MapEntiy::
918919
// $category = $categoryRepository->findOneBy(['slug' => 'the slug category']);
919920
}
920921

921-
As an alternative, tou can use ``Aliased Mapped Route Parameters``.
922+
As an alternative, you can use ``Aliased Mapped Route Parameters``.
922923

923924
When adding route parameters, you can now define the mapping between the route parameter and the controller argument with an alias::
924925

0 commit comments

Comments
 (0)