Skip to content

Commit 6e8fd5f

Browse files
authored
Update doctrine.rst
1 parent fdc1321 commit 6e8fd5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doctrine.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -691,15 +691,15 @@ will automatically fetch them::
691691
* Fetch via primary key because {id} is in the route.
692692
*/
693693
#[Route('/product/{id}')]
694-
public function showByPk(Post $post): Response
694+
public function showByPk(Product $product): Response
695695
{
696696
}
697697

698698
/**
699699
* Perform a findOneBy() where the slug property matches {slug}.
700700
*/
701701
#[Route('/product/{slug}')]
702-
public function showBySlug(Post $post): Response
702+
public function showBySlug(Product $product): Response
703703
{
704704
}
705705

0 commit comments

Comments
 (0)