Skip to content

Commit 5f85823

Browse files
committed
minor #16134 [Doctrine] Update associations.rst (VosKoen)
This PR was merged into the 5.3 branch. Discussion ---------- [Doctrine] Update associations.rst syntax error in orphanRemoval=true In the Attributes code example #[ORM\OneToMany(mappedBy: 'user', targetEntity: Recipe::class, orphanRemoval=true)], doesn't work because of wrong syntax. should be #[ORM\OneToMany(mappedBy: 'user', targetEntity: Recipe::class, orphanRemoval: true)] <!-- 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 `5.x` for features of unreleased versions). --> Commits ------- da7c885 Update associations.rst
2 parents 1b6a1f3 + da7c885 commit 5f85823

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doctrine/associations.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ that behavior, use the `orphanRemoval`_ option inside ``Category``:
676676
677677
// ...
678678
679-
#[ORM\OneToMany(targetEntity: Product::class, mappedBy: "category", orphanRemoval=true)]
679+
#[ORM\OneToMany(targetEntity: Product::class, mappedBy: "category", orphanRemoval: true)]
680680
private $products;
681681
682682

0 commit comments

Comments
 (0)