/** * @param $id * @param $body * @return mixed */ private function _updateComment($id, $body) { $comment = Comment::findOne(['id' => $id]); $comment->body = $body; return $comment->update(); }