From 5121c2b2f0083088ac2167ae455f2bc8d6b9cd1a Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Mon, 14 Oct 2019 15:13:39 +0200 Subject: [PATCH] Join host.state --- application/controllers/ServiceController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/controllers/ServiceController.php b/application/controllers/ServiceController.php index 73a3c3b8..eed1f297 100644 --- a/application/controllers/ServiceController.php +++ b/application/controllers/ServiceController.php @@ -17,7 +17,8 @@ class ServiceController extends Controller $query = Service::on($this->getDb())->with([ 'state', - 'host' + 'host', + 'host.state' ]); $query->getSelectBase() ->where(['service.name = ?' => $name])