Skip to content

Commit

Permalink
fix deleCcomment error
Browse files Browse the repository at this point in the history
  • Loading branch information
admin authored and admin committed Apr 1, 2019
1 parent 1a096c1 commit 3a57326
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 44 deletions.
72 changes: 29 additions & 43 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Repository/CommentRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public function getCommentForvalidated(int $id)
ON `comment`.`article_id` = `article`.`id`
LEFT JOIN `user`
ON `article`.`author_id` = `user`.`id`
WHERE article_id = :id', [
WHERE `comment`.`id`= :id', [
':id' => $id
]
)->fetch();
Expand Down

0 comments on commit 3a57326

Please sign in to comment.