Owl\Repositories\Fluent\CommentRepository::updateComment PHP Method

updateComment() public method

Update a comment's body.
public updateComment ( $id, $body ) : Illuminate\Database\Eloquent\Model
$id int
$body string
return Illuminate\Database\Eloquent\Model
    public function updateComment($id, $body)
    {
        $object = array();
        $object["body"] = $body;
        $wkey["id"] = $id;
        $ret = $this->update($object, $wkey);
        $comment = $this->getCommentById($id);
        $comment->user = $this->getCommentUserById($id);
        return $comment;
    }