From 6d10b6dac1ba72330284c01d065bbf18fe62b12c Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Tue, 29 Mar 2016 07:43:23 +0300 Subject: [PATCH] Post and Comment small fixes. --- .../PointToolsBundle/Entity/Blogs/Comment.php | 13 ------------- .../Bundle/PointToolsBundle/Entity/Blogs/Post.php | 1 + 2 files changed, 1 insertion(+), 13 deletions(-) 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; }