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
@@ -193,9 +194,9 @@ public function add($collectionId, Document $document, $options = array())
193
194
*
194
195
* @throws Exception
195
196
*
196
-
* @param mixed$collectionId - collection id as string or number
197
-
* @param mixed $document - the document to be added, can be passed as a document or an array
198
-
* @param bool|array $options - optional, prior to v1.2.0 this was a boolean value for create. Since v1.0.0 it's an array of options.
197
+
* @param Document$document - the document to be added, can be passed as a document or an array
198
+
* @param mixed $collectionId- collection id as string or number
199
+
* @param bool|array $options - optional, prior to v1.2.0 this was a boolean value for create. Since v1.2.0 it's an array of options.
199
200
* <p>Options are :<br>
200
201
* <li>'create' - create the collection if it does not yet exist.</li>
201
202
* <li>'waitForSync' - if set to true, then all removal operations will instantly be synchronised to disk / If this is not specified, then the collection's default sync behavior will be applied.</li>
@@ -206,19 +207,19 @@ public function add($collectionId, Document $document, $options = array())
@@ -250,10 +253,10 @@ public function getVertex($graphName, $vertexId, array $options = array())
250
253
*
251
254
* @throws Exception
252
255
*
253
-
* @param string $graphName - the graph name as string
254
-
* @param mixed $vertexId - the vertex id as string or number
255
-
* @param Document $document - the vertex-document to be updated
256
-
* @param mixed $options - optional, an array of options (see below) or the boolean value for $policy (for compatibility prior to version 1.1 of this method)
256
+
* @param string $graphName - the graph name as string
257
+
* @param mixed $vertexId - the vertex id as string or number
258
+
* @param Document $document - the vertex-document to be updated
259
+
* @param mixed $options - optional, an array of options (see below) or the boolean value for $policy (for compatibility prior to version 1.1 of this method)
257
260
* <p>Options are :
258
261
* <li>'policy' - update policy to be used in case of conflict ('error', 'last' or NULL [use default])</li>
259
262
* <li>'waitForSync' - can be used to force synchronisation of the document replacement operation to disk even in case that the waitForSync flag had been disabled for the entire collection</li>
@@ -357,9 +360,10 @@ public function updateVertex($graphName, $vertexId, Document $document, $options
@@ -420,11 +424,11 @@ public function removeVertex($graphName, $vertexId, $revision = null, $options =
420
424
*
421
425
* @throws Exception
422
426
*
423
-
* @param mixed $graphName - the graph name as string
424
-
* @param mixed $from - the 'from' vertex
425
-
* @param mixed $to - the 'to' vertex
426
-
* @param mixed $label - (optional) a label for the edge
427
-
* @param mixed $document - the edge-document to be added, can be passed as an edge object or an array
427
+
* @param mixed $graphName - the graph name as string
428
+
* @param mixed $from - the 'from' vertex
429
+
* @param mixed $to - the 'to' vertex
430
+
* @param mixed $label - (optional) a label for the edge
431
+
* @param mixed $document - the edge-document to be added, can be passed as an edge object or an array
428
432
*
429
433
* @return mixed - id of edge created
430
434
* @since 1.2
@@ -459,6 +463,7 @@ public function saveEdge($graphName, $from, $to, $label = null, $document)
459
463
}
460
464
461
465
$document->setIsNew(false);
466
+
462
467
return$document->getId();
463
468
}
464
469
@@ -492,6 +497,7 @@ public function getEdge($graphName, $edgeId, array $options = array())
492
497
$edge = $jsonArray['edge'];
493
498
494
499
$options['_isNew'] = false;
500
+
495
501
return Edge::createFromArray($edge, $options);
496
502
}
497
503
@@ -509,11 +515,11 @@ public function getEdge($graphName, $edgeId, array $options = array())
509
515
*
510
516
* @throws Exception
511
517
*
512
-
* @param mixed $graphName - graph name as string or number
513
-
* @param mixed $edgeId - edge id as string or number
514
-
* @param mixed $label - (optional) label for the edge
515
-
* @param Edge $document - edge document to be updated
516
-
* @param mixed $options - optional, array of options (see below) or the boolean value for $policy (for compatibility prior to version 1.1 of this method)
518
+
* @param mixed $graphName - graph name as string or number
519
+
* @param mixed $edgeId - edge id as string or number
520
+
* @param mixed $label - (optional) label for the edge
521
+
* @param Edge $document - edge document to be updated
522
+
* @param mixed $options - optional, array of options (see below) or the boolean value for $policy (for compatibility prior to version 1.1 of this method)
517
523
* <p>Options are :
518
524
* <li>'policy' - update policy to be used in case of conflict ('error', 'last' or NULL [use default])</li>
519
525
* <li>'waitForSync' - can be used to force synchronisation of the document replacement operation to disk even in case that the waitForSync flag had been disabled for the entire collection</li>
@@ -581,11 +587,11 @@ public function ReplaceEdge($graphName, $edgeId, $label, Edge $document, $option
581
587
*
582
588
* @throws Exception
583
589
*
584
-
* @param string $graphName - graph name as string
585
-
* @param mixed $edgeId - edge id as string or number
586
-
* @param mixed $label - (optional) label for the edge
587
-
* @param Edge $document - patch edge-document which contains the attributes and values to be updated
588
-
* @param mixed $options - optional, array of options (see below)
590
+
* @param string $graphName - graph name as string
591
+
* @param mixed $edgeId - edge id as string or number
592
+
* @param mixed $label - (optional) label for the edge
593
+
* @param Edge $document - patch edge-document which contains the attributes and values to be updated
594
+
* @param mixed $options - optional, array of options (see below)
589
595
* <p>Options are :
590
596
* <li>'policy' - update policy to be used in case of conflict ('error', 'last' or NULL [use default])</li>
591
597
* <li>'keepNull' - can be used to instruct ArangoDB to delete existing attributes instead setting their values to null. Defaults to true (keep attributes when set to null)</li>
@@ -626,9 +632,10 @@ public function updateEdge($graphName, $edgeId, $label, Edge $document, $options
0 commit comments