Skip to content

ArangoDBClient\GraphHandler\saveEdge PHPDoc Issue #257

Open
@mstrofbass

Description

@mstrofbass

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:

* @param string $collection - if one uses a graph with more than one vertex collection one must provide the collection

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions