diff --git a/src/Skobkin/Bundle/PointToolsBundle/Entity/Blogs/Comment.php b/src/Skobkin/Bundle/PointToolsBundle/Entity/Blogs/Comment.php index 588e3c6..1dbbaaa 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/Entity/Blogs/Comment.php +++ b/src/Skobkin/Bundle/PointToolsBundle/Entity/Blogs/Comment.php @@ -344,19 +344,6 @@ class Comment return $this->deleted; } - /** - * Set id - * - * @param integer $id - * @return Comment - */ - public function setId($id) - { - $this->id = $id; - - return $this; - } - /** * Add children * diff --git a/src/Skobkin/Bundle/PointToolsBundle/Entity/Blogs/Post.php b/src/Skobkin/Bundle/PointToolsBundle/Entity/Blogs/Post.php index e068cdf..170ef76 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/Entity/Blogs/Post.php +++ b/src/Skobkin/Bundle/PointToolsBundle/Entity/Blogs/Post.php @@ -363,6 +363,7 @@ class Post public function addComment(Comment $comment) { $this->comments[] = $comment; + $comment->setPost($this); return $this; }