Skip to content

Commit 12a33e6

Browse files
committed
Merge branch 'devel' of https://github.com/arangodb/arangodb-php into devel
2 parents d3635b9 + 34a8511 commit 12a33e6

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

lib/ArangoDBClient/BatchPart.php

+7
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,13 @@ public function getProcessedResponse()
290290
$options = array_merge(['_documentClass' => $this->_documentClass], $options);
291291
$response = new Cursor($this->_batch->getConnection(), $response->getJson(), $options);
292292
break;
293+
case 'remove':
294+
$json = $response->getJson();
295+
$response = [
296+
'removed' => $json['removed'],
297+
'ignored' => $json['ignored']
298+
];
299+
break;
293300
default:
294301
throw new ClientException('Could not determine response data type.');
295302
break;

lib/ArangoDBClient/CollectionHandler.php

+4
Original file line numberDiff line numberDiff line change
@@ -1598,6 +1598,10 @@ public function removeByKeys($collectionId, array $keys, array $options = [])
15981598
);
15991599

16001600
$response = $this->getConnection()->put(Urls::URL_REMOVE_BY_KEYS, $this->json_encode_wrapper($body));
1601+
1602+
if ($batchPart = $response->getBatchPart()) {
1603+
return $batchPart;
1604+
}
16011605

16021606
$responseArray = $response->getJson();
16031607

0 commit comments

Comments
 (0)