diff --git a/application/controllers/CommentController.php b/application/controllers/CommentController.php index ab5c57ea..f01b67e9 100644 --- a/application/controllers/CommentController.php +++ b/application/controllers/CommentController.php @@ -27,9 +27,7 @@ class CommentController extends Controller $name = $this->params->shiftRequired('name'); - $query = Comment::on($this->getDb()) - ->with('host') - ->with('host.state'); + $query = Comment::on($this->getDb())->with(['host', 'host.state']); $query->getSelectBase() ->where(['comment.name = ?' => $name]);