Skip to content

Commit cd4ed23

Browse files
committed
deprecate some functionality
1 parent 7986a7e commit cd4ed23

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

CHANGELOG.md

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,6 @@
22

33
## Release notes for the ArangoDB-PHP driver 3.8.x
44

5-
This version of the PHP driver removes support for the MMFiles storage engine, which was
6-
deprecated in the arangod server in version 3.6.0, and removed in version 3.7.0..
7-
8-
Updating, replacing or removing documents in the database using a revision id guard value
9-
may return a different error message in case the revision id value of the found document is
10-
not as expected.
11-
Previous versions before 3.7 returned HTTP error 412, an ArangoDB error code 1200 and the
12-
error message string "precondition failed". This was changed in version 3.7 to return the
13-
same error codes, but an error message string of "conflict". Version 3.8 changes this again
14-
so the error message string is now "conflict, _rev values do not match".
15-
165
The `Cursor` class will now fetch outstanding cursor result data via HTTP POST requests to
176
`/_api/cursor/<cursor-id>`. It previously fetched further results via HTTP PUT requests from
187
the same address. The change is necessary because fetching further results is not an
@@ -21,6 +10,11 @@ idempotent operation, but the HTTP standard requires PUT operations to be idempo
2110
Extended maximum valid length for collection names to 256, up from 64 before. This follows a
2211
change in the ArangoDB server.
2312

13+
The driver now supports the following options for document CRUD operations:
14+
- "overwriteMode"
15+
- "silent"
16+
- "keepNull", "mergeObjects" (for insert API if overwriteMode=update)
17+
2418
## Release notes for the ArangoDB-PHP driver 3.7.x
2519

2620
The corresponding ArangoDB version, ArangoDB 3.7 has dropped support for the MMFiles storage

lib/ArangoDBClient/CollectionHandler.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ class CollectionHandler extends Handler
228228
const OPTION_FIGURES = 'figures';
229229

230230
/**
231-
* load option
231+
* load option (deprecated)
232232
*/
233233
const OPTION_LOAD = 'load';
234234

@@ -341,7 +341,7 @@ public function create($collection, array $options = [])
341341
}
342342

343343
/**
344-
* unload option
344+
* unload option (deprecated)
345345
*/
346346
const OPTION_UNLOAD = 'unload';
347347

@@ -567,6 +567,8 @@ public function rename($collection, $name)
567567
*
568568
* @param mixed $collection - collection as string or object
569569
*
570+
* @deprecated not necessary anymore
571+
*
570572
* @return HttpResponse - HTTP response object
571573
*/
572574
public function load($collection)
@@ -588,6 +590,8 @@ public function load($collection)
588590
*
589591
* @param mixed $collection - collection as string or object
590592
*
593+
* @deprecated not necessary anymore
594+
*
591595
* @return HttpResponse - HTTP response object
592596
*/
593597
public function unload($collection)

lib/ArangoDBClient/Traversal.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
*
2121
* @link https://www.arangodb.com/docs/stable/http/traversal.html
2222
*
23+
* @deprecated use AQL traversals instead
2324
* @package ArangoDBClient
2425
* @since 1.4
2526
*/

0 commit comments

Comments
 (0)