Skip to content

Commit da7c885

Browse files
authored
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)]
1 parent 1ddac41 commit da7c885

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)