@@ -755,9 +755,9 @@ control behavior:
755
755
756
756
#[Route('/product/{product_id}')]
757
757
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
761
761
): Response {
762
762
}
763
763
@@ -768,10 +768,10 @@ control behavior:
768
768
769
769
#[Route('/product/{category}/{slug}/comments/{comment_slug}')]
770
770
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
775
775
): Response {
776
776
}
777
777
@@ -781,9 +781,9 @@ control behavior:
781
781
782
782
#[Route('/product/{slug}/{date}')]
783
783
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
787
787
): Response {
788
788
}
789
789
@@ -797,8 +797,8 @@ control behavior:
797
797
798
798
#[Route('/product/{id}')]
799
799
public function show(
800
- #[MapEntity(entityManager: ['foo'])]
801
- Product $product
800
+ #[MapEntity(entityManager: ['foo'])]
801
+ Product $product
802
802
): Response {
803
803
}
804
804
@@ -1070,7 +1070,6 @@ Learn more
1070
1070
.. _`Transactions and Concurrency` : https://www.doctrine-project.org/projects/doctrine-orm/en/current/reference/transactions-and-concurrency.html
1071
1071
.. _`DoctrineMigrationsBundle` : https://github.com/doctrine/DoctrineMigrationsBundle
1072
1072
.. _`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
1074
1073
.. _`limit of 767 bytes for the index key prefix` : https://dev.mysql.com/doc/refman/5.6/en/innodb-limits.html
1075
1074
.. _`Doctrine screencast series` : https://symfonycasts.com/screencast/symfony-doctrine
1076
1075
.. _`API Platform` : https://api-platform.com/docs/core/validation/
0 commit comments