diff --git a/src/Entity/Blog/Comment.php b/src/Entity/Blog/Comment.php index 8faedd6..d78f2e0 100644 --- a/src/Entity/Blog/Comment.php +++ b/src/Entity/Blog/Comment.php @@ -65,7 +65,7 @@ class Comment $this->children = new ArrayCollection(); } - public function getId(): int + public function getId(): ?int { return $this->id; } diff --git a/src/Entity/Blog/File.php b/src/Entity/Blog/File.php index 0ec9f68..f9342e5 100644 --- a/src/Entity/Blog/File.php +++ b/src/Entity/Blog/File.php @@ -25,7 +25,7 @@ class File $this->remoteUrl = $remoteUrl; } - public function getId(): int + public function getId(): ?int { return $this->id; }