Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d3d7abb

Browse filesBrowse 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
Copy full SHA for d3d7abb

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎src/AppBundle/Entity/Post.php

Copy file name to clipboardExpand all lines: src/AppBundle/Entity/Post.php
+3-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.