You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix the document ids to correctly use ArangoDB's _ids instead of only the _key
This is a backwards incompatible change, but necessary to be consistent with ArangoDB's API.
Important related changes to this:
- Document::getId() : Will return the correct id (collectionName/DocumentId) instead of the key.
- DocumentHandler::getById(): will work as before, but it will accept a "real" document ID in addition to the key. If a real document ID is given, the collection data will be extracted from that string. That means that the first parameter `$collection` does not need to have a valid value, in that case.
- UrlHelper::getDocumentIdFromLocation() : Will now return a "real" _id instead of what was essentially the `_key`
Fixed Tests to adapt to the new id handling.
- Document ID's are now handled correctly. This is a necessary and ___backwards incompatible change___, in order to be consistent with ArangoDB's API.
4
+
5
+
Why: It was necessary to fix the document ids to correctly use ArangoDB's _ids instead of only the _key.
6
+
7
+
__Important incompatible changes related to this:__
8
+
- Document::getId(): Will return the correct id (CollectionName/DocumentID) instead of the key (DocumentID).
9
+
- UrlHelper::getDocumentIdFromLocation(): Will now return a "real" _id instead of what was essentially the `_key`
10
+
11
+
__Other changes related to this:__
12
+
- DocumentHandler::getById(): Will work as before, but it will also accept a "real" document ID in addition to the key.
13
+
If a real document ID is given, the collection data will be extracted from that string. That means that the first parameter `$collection` does not need to have a valid value, in that case.
3
14
4
15
- The namespace `\triagens\ArangoDb` was replaced with `\ArangoDBClient`.
5
16
For each class in the old namespace there is now a class alias that points
0 commit comments