From be0aa5d6f49099a79b94b425d72d5927eafb834c Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 23 May 2022 14:13:18 +0200 Subject: [PATCH] IcingaDbState: Use multiple calls of `Query::with()` The possibility to pass an array will soon be dropped. --- library/Businessprocess/State/IcingaDbState.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/library/Businessprocess/State/IcingaDbState.php b/library/Businessprocess/State/IcingaDbState.php index f33d4a4..1628ed7 100644 --- a/library/Businessprocess/State/IcingaDbState.php +++ b/library/Businessprocess/State/IcingaDbState.php @@ -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));