From da7c88512a7686bc8a742da2fab0369178fcaf16 Mon Sep 17 00:00:00 2001 From: VosKoen <40901069+VosKoen@users.noreply.github.com> Date: Fri, 19 Nov 2021 20:06:52 +0100 Subject: [PATCH] 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)] --- doctrine/associations.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doctrine/associations.rst b/doctrine/associations.rst index 94c74dc0a6f..46c843699de 100644 --- a/doctrine/associations.rst +++ b/doctrine/associations.rst @@ -676,7 +676,7 @@ that behavior, use the `orphanRemoval`_ option inside ``Category``: // ... - #[ORM\OneToMany(targetEntity: Product::class, mappedBy: "category", orphanRemoval=true)] + #[ORM\OneToMany(targetEntity: Product::class, mappedBy: "category", orphanRemoval: true)] private $products;