Skip to content

Commit eaa5b3f

Browse files
committed
fully-qualified namespaces
1 parent a3fc006 commit eaa5b3f

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

lib/instance.inc

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,10 @@ class Instance extends \OpenCloud\PersistentObject {
198198
$obj = json_decode($response->HttpBody());
199199
if (!$this->CheckJsonError()) {
200200
if (!isset($obj->databases))
201-
return new \OpenCloud\Collection($this, 'Database', array());
202-
return new \OpenCloud\Collection($this,
203-
'Database', $obj->databases);
201+
return new \OpenCloud\Collection(
202+
$this, '\OpenCloud\DbService\Database', array());
203+
return new \OpenCloud\Collection(
204+
$this, '\OpenCloud\DbService\Database', $obj->databases);
204205
}
205206
return FALSE;
206207
}
@@ -225,8 +226,10 @@ class Instance extends \OpenCloud\PersistentObject {
225226
$obj = json_decode($response->HttpBody());
226227
if (!$this->CheckJsonError()) {
227228
if (!isset($obj->users))
228-
return new \OpenCloud\Collection($this, 'User', array());
229-
return new \OpenCloud\Collection($this, 'User', $obj->users);
229+
return new \OpenCloud\Collection(
230+
$this, '\OpenCloud\DbService\User', array());
231+
return new \OpenCloud\Collection(
232+
$this, '\OpenCloud\DbService\User', $obj->users);
230233
}
231234
return FALSE;
232235
}

0 commit comments

Comments
 (0)