From 63b27dc3120cee9bbe8eb9db6dd9e8185f8af004 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Sun, 4 Nov 2018 19:00:53 +0300 Subject: [PATCH] Post::addComment() bug fix. --- src/Skobkin/Bundle/PointToolsBundle/Entity/Blogs/Post.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Skobkin/Bundle/PointToolsBundle/Entity/Blogs/Post.php b/src/Skobkin/Bundle/PointToolsBundle/Entity/Blogs/Post.php index 0838135..94e5477 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/Entity/Blogs/Post.php +++ b/src/Skobkin/Bundle/PointToolsBundle/Entity/Blogs/Post.php @@ -263,7 +263,6 @@ class Post public function addComment(Comment $comment): self { $this->comments[] = $comment; - $comment->setPost($this); return $this; }