Open
Description
I might be misunderstanding or missing something...so preemptively sorry.
The PHPdoc for ArangoDBClient\GraphHandler\saveEdge states that:
@param string $collection - if one uses a graph with more than one vertex collection one must provide the collection
I believe that "vertex" should be "edge", specifically because it initially confused me then I saw that the associated code is:
if ($collection === null) {
$edgeCollections = $this->getEdgeCollections($graph);
$edgeCollectionsCount = count($edgeCollections);
if ($edgeCollectionsCount !== 1) {
throw new ClientException('A collection must be provided.');
}
if ($edgeCollectionsCount === 1) {
$collection = $edgeCollections[0];
}
}
Link to relevant docs:
arangodb-php/lib/ArangoDBClient/GraphHandler.php
Line 1019 in 69d557f
Metadata
Metadata
Assignees
Labels
No labels