Skip to content

Commit d3d7abb

Browse files
committed
minor symfony#61 Singularize Post removeComment argument (SebLours)
This PR was squashed before being merged into the master branch (closes symfony#61). Discussion ---------- Singularize Post removeComment argument Commits ------- ecd4d32 Singularize Post removeComment argument
2 parents 925e3ed + ecd4d32 commit d3d7abb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/AppBundle/Entity/Post.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,10 @@ public function addComment(Comment $comment)
166166
$comment->setPost($this);
167167
}
168168

169-
public function removeComment(Comment $comments)
169+
public function removeComment(Comment $comment)
170170
{
171-
$this->comments->removeElement($comments);
172-
$comments->setPost(null);
171+
$this->comments->removeElement($comment);
172+
$comment->setPost(null);
173173
}
174174

175175
public function getSummary()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy