diff --git a/doctrine/associations.rst b/doctrine/associations.rst index aaf7b01de12..6efeaae2ddf 100644 --- a/doctrine/associations.rst +++ b/doctrine/associations.rst @@ -155,7 +155,7 @@ the ``Product`` entity (and getter & setter methods): return $this->category; } - public function setCategory(?Category $category): self + public function setCategory(Category $category): self { $this->category = $category;