IcingaDbState: Use multiple calls of Query::with()

The possibility to pass an array will soon be dropped.
This commit is contained in:
Johannes Meyer 2022-05-23 14:13:18 +02:00
parent 0b392762f9
commit be0aa5d6f4

View file

@ -71,11 +71,10 @@ class IcingaDbState
Benchmark::measure('Retrieved states for ' . $queryHost->count() . ' hosts in ' . $config->getName());
$queryService = Service::on($this->backend)->with([
'state',
'host',
'host.state'
]);
$queryService = Service::on($this->backend)
->with('state')
->with('host')
->with('host.state');
$queryService->filter(Filter::equal('host.name', $hosts));