@@ -755,9 +755,9 @@ control behavior:
755755
756756 #[Route('/product/{product_id}')]
757757 public function show(
758- Product $product
759- #[MapEntity(id: 'product_id')]
760- Comment $comment
758+ Product $product
759+ #[MapEntity(id: 'product_id')]
760+ Comment $comment
761761 ): Response {
762762 }
763763
@@ -768,10 +768,10 @@ control behavior:
768768
769769 #[Route('/product/{category}/{slug}/comments/{comment_slug}')]
770770 public function show(
771- #[MapEntity(mapping: ['date' => 'date', 'slug' => 'slug'])]
772- Product $product
773- #[MapEntity(mapping: ['comment_slug' => 'slug'])]
774- Comment $comment
771+ #[MapEntity(mapping: ['date' => 'date', 'slug' => 'slug'])]
772+ Product $product
773+ #[MapEntity(mapping: ['comment_slug' => 'slug'])]
774+ Comment $comment
775775 ): Response {
776776 }
777777
@@ -781,9 +781,9 @@ control behavior:
781781
782782 #[Route('/product/{slug}/{date}')]
783783 public function show(
784- #[MapEntity(exclude: ['date'])]
785- Product $product
786- \D ateTime $date
784+ #[MapEntity(exclude: ['date'])]
785+ Product $product
786+ \D ateTime $date
787787 ): Response {
788788 }
789789
@@ -797,8 +797,8 @@ control behavior:
797797
798798 #[Route('/product/{id}')]
799799 public function show(
800- #[MapEntity(entityManager: ['foo'])]
801- Product $product
800+ #[MapEntity(entityManager: ['foo'])]
801+ Product $product
802802 ): Response {
803803 }
804804
@@ -1070,7 +1070,6 @@ Learn more
10701070.. _`Transactions and Concurrency` : https://www.doctrine-project.org/projects/doctrine-orm/en/current/reference/transactions-and-concurrency.html
10711071.. _`DoctrineMigrationsBundle` : https://github.com/doctrine/DoctrineMigrationsBundle
10721072.. _`NativeQuery` : https://www.doctrine-project.org/projects/doctrine-orm/en/current/reference/native-sql.html
1073- .. _`SensioFrameworkExtraBundle` : https://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/index.html
10741073.. _`limit of 767 bytes for the index key prefix` : https://dev.mysql.com/doc/refman/5.6/en/innodb-limits.html
10751074.. _`Doctrine screencast series` : https://symfonycasts.com/screencast/symfony-doctrine
10761075.. _`API Platform` : https://api-platform.com/docs/core/validation/
0 commit comments