Join host.state

This commit is contained in:
Eric Lippmann 2019-10-14 15:13:39 +02:00
parent c70dd89980
commit 5121c2b2f0

View file

@ -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])