diff --git a/src/Entity/Tag.php b/src/Entity/Tag.php index 718a6ab..4bb90d9 100644 --- a/src/Entity/Tag.php +++ b/src/Entity/Tag.php @@ -42,7 +42,7 @@ class Tag * @ORM\ManyToOne(targetEntity="App\Entity\Tag", cascade={"persist"}) * @ORM\JoinColumn(name="parent_id", referencedColumnName="id", nullable=true) */ - private $parent; + private ?Tag $parent = null; public function __toString(): string {