Skip to content

Commit 95a6826

Browse files
author
Vladislav Baranovskiy
committed
Add id field value for database server response of get operation
1 parent 5914ab9 commit 95a6826

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/PleskX/Api/Operator/DatabaseServer.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ private function _get($field = null, $value = null)
5757

5858
$items = [];
5959
foreach ($response->xpath('//result') as $xmlResult) {
60-
$items[] = new Struct\Info($xmlResult->data);
60+
$item = new Struct\Info($xmlResult->data);
61+
$item->id = (int)$xmlResult->id;
62+
$items[] = $item;
6163
}
6264

6365
return $items;

0 commit comments

Comments
 (0)