Skip to content

Commit 6bcb7a1

Browse files
committed
minor #17557 [Doctrine] Update doctrine.rst (alex00ds)
This PR was merged into the 6.2 branch. Discussion ---------- [Doctrine] Update doctrine.rst An example of MapEntity Options "exclude" have a wrong paragraph formatting (this is : when :: is expected). An example of MapEntity Options "mapping" contains a property is not synced with a placeholder (there is no 'date' in the route). <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- 5ce20ac Update doctrine.rst
2 parents 67c46f8 + 5ce20ac commit 6bcb7a1

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
@@ -768,7 +768,7 @@ control behavior:
768768

769769
#[Route('/product/{category}/{slug}/comments/{comment_slug}')]
770770
public function show(
771-
#[MapEntity(mapping: ['date' => 'date', 'slug' => 'slug'])]
771+
#[MapEntity(mapping: ['category' => 'category', 'slug' => 'slug'])]
772772
Product $product
773773
#[MapEntity(mapping: ['comment_slug' => 'slug'])]
774774
Comment $comment
@@ -777,7 +777,7 @@ control behavior:
777777

778778
``exclude``
779779
Configures the properties that should be used in the ``findOneBy()``
780-
method by *excluding* one or more properties so that not *all* are used:
780+
method by *excluding* one or more properties so that not *all* are used::
781781

782782
#[Route('/product/{slug}/{date}')]
783783
public function show(

0 commit comments

Comments
 (0)