neo4j-php / neo4j-symfony

Symfony Bundle for the Neo4j Graph Database
MIT License
77 stars 40 forks source link

QueryLogger::statisticsToArray() must be an instance of GraphAware\Common\Result\StatementStatisticsInterface #67

Open johnnyMick opened 4 years ago

johnnyMick commented 4 years ago

Update : vendor/neo4j/neo4j-bundle/Collector/QueryLogger.php

private function statisticsToArray(StatementStatisticsInterface $statementStatistics = null)
    {
        if (is_null($statementStatistics)) return [];
        $data = [
            'contains_updates' => $statementStatistics->containsUpdates(),
            'nodes_created' => $statementStatistics->nodesCreated(),
            'nodes_deleted' => $statementStatistics->nodesDeleted(),
            'relationships_created' => $statementStatistics->relationshipsCreated(),
            'relationships_deleted' => $statementStatistics->relationshipsDeleted(),
            'properties_set' => $statementStatistics->propertiesSet(),
            'labels_added' => $statementStatistics->labelsAdded(),
            'labels_removed' => $statementStatistics->labelsRemoved(),
            'indexes_added' => $statementStatistics->indexesAdded(),
            'indexes_removed' => $statementStatistics->indexesRemoved(),
            'constraints_added' => $statementStatistics->constraintsAdded(),
            'constraints_removed' => $statementStatistics->constraintsRemoved(),
        ];

        return $data;
    }
xavismeh commented 4 years ago

Hello @johnnyMick, can you provide us the version of graphaware/* packages versions you are using please?

johnnyMick commented 4 years ago

"neo4j/neo4j-bundle": "dev-master" "graphaware/neo4j-php-client": "^4.6.4" "graphaware/neo4j-bolt": "^1.6"