Skip to content

Commit bbde534

Browse files
committed
fixed entity
1 parent 955c10e commit bbde534

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/eCloud/HostGroupClient.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,15 @@ class HostGroupClient extends Client implements ClientEntityInterface
1212

1313
protected $collectionPath = 'v2/host-groups';
1414

15+
public function getEntityMap()
16+
{
17+
return HostGroup::$entityMap;
18+
}
19+
1520
public function loadEntity($data)
1621
{
1722
return new HostGroup(
18-
$this->apiToFriendly($data, HostGroup::$entityMap)
23+
$this->apiToFriendly($data, $this->getEntityMap())
1924
);
2025
}
2126
}

0 commit comments

Comments
 (0)