From 0dbfbba11a182ef37506fc968a2b398e95bbbfad Mon Sep 17 00:00:00 2001 From: "Mr. Timothy G Webb Sr" Date: Fri, 27 Nov 2020 00:05:34 -0500 Subject: [PATCH] Update Service.php --- src/bb-modules/Servicehosting/Service.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bb-modules/Servicehosting/Service.php b/src/bb-modules/Servicehosting/Service.php index 685e28690..6fa98dc71 100644 --- a/src/bb-modules/Servicehosting/Service.php +++ b/src/bb-modules/Servicehosting/Service.php @@ -442,9 +442,9 @@ class Service implements InjectionAwareInterface return array($adapter, $a); } - public function toApiArray(\Model_ServiceHosting $model, $deep = false, $identity = null) + public function toApiArray(\Model_ServiceHostingServer $model, $deep = false, $identity = null) { - $serviceHostingServerModel = $this->di['db']->load('ServiceHostingServer', $model->service_hosting_server_id); + $serviceHostingServerModel = $this->di['db']->load('ServiceHosting', $model->service_hosting_server_id); $serviceHostingHpModel = $this->di['db']->load('ServiceHostingHp', $model->service_hosting_hp_id); $server = $this->toHostingServerApiArray($serviceHostingServerModel, $deep, $identity); $hp = $this->toHostingHpApiArray($serviceHostingHpModel, $deep, $identity);