We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8ea2d2 commit 27fdb54Copy full SHA for 27fdb54
doctrine/associations.rst
@@ -146,7 +146,7 @@ the ``Product`` entity (and getter & setter methods):
146
147
/**
148
* @ORM\ManyToOne(targetEntity="App\Entity\Category", inversedBy="products")
149
- * @ORM\JoinColumn(nullable=false)
+ * @ORM\JoinColumn()
150
*/
151
private $category;
152
@@ -155,7 +155,7 @@ the ``Product`` entity (and getter & setter methods):
155
return $this->category;
156
}
157
158
- public function setCategory(Category $category): self
+ public function setCategory(?Category $category): self
159
{
160
$this->category = $category;
161
0 commit comments