mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-01-23 12:42:53 -05:00
IcingaDbState: Use multiple calls of Query::with()
The possibility to pass an array will soon be dropped.
This commit is contained in:
parent
0b392762f9
commit
be0aa5d6f4
1 changed files with 4 additions and 5 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue