Skip to content

Commit bd36c5c

Browse files
committed
Remove useless addComment and removeComment methods
1 parent 1f882a5 commit bd36c5c

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

src/AppBundle/DataFixtures/ORM/PostFixtures.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ public function load(ObjectManager $manager)
6969
$comment->setPost($post);
7070

7171
$manager->persist($comment);
72-
$post->addComment($comment);
7372
}
7473

7574
$manager->persist($post);

src/AppBundle/Entity/Post.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -201,17 +201,6 @@ public function getComments()
201201
return $this->comments;
202202
}
203203

204-
public function addComment(Comment $comment)
205-
{
206-
$this->comments->add($comment);
207-
$comment->setPost($this);
208-
}
209-
210-
public function removeComment(Comment $comment)
211-
{
212-
$this->comments->removeElement($comment);
213-
}
214-
215204
public function getSummary()
216205
{
217206
return $this->summary;

0 commit comments

Comments
 (0)