Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
johnnyMick opened this issue Feb 13, 2020 · 2 comments
Labels

Comments

@johnnyMick
Copy link

johnnyMick commented Feb 13, 2020

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
Copy link
Collaborator

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

@johnnyMick
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants