Post::addComment() bug fix.

This commit is contained in:
Alexey Skobkin 2018-11-04 19:00:53 +03:00
parent f5a4e5b896
commit 63b27dc312

View file

@ -263,7 +263,6 @@ class Post
public function addComment(Comment $comment): self
{
$this->comments[] = $comment;
$comment->setPost($this);
return $this;
}