Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions doctrine.rst
Original file line number Diff line number Diff line change
Expand Up @@ -755,8 +755,7 @@ control behavior:

#[Route('/product/{product_id}')]
public function show(
Product $product
#[MapEntity(id: 'product_id')]
#[MapEntity(id: 'product_id')] Product $product,
Comment $comment
): Response {
}
Expand All @@ -769,7 +768,7 @@ control behavior:
#[Route('/product/{category}/{slug}/comments/{comment_slug}')]
public function show(
#[MapEntity(mapping: ['category' => 'category', 'slug' => 'slug'])]
Product $product
Product $product,
#[MapEntity(mapping: ['comment_slug' => 'slug'])]
Comment $comment
): Response {
Expand All @@ -782,7 +781,7 @@ control behavior:
#[Route('/product/{slug}/{date}')]
public function show(
#[MapEntity(exclude: ['date'])]
Product $product
Product $product,
\DateTime $date
): Response {
}
Expand Down