Vinelab / NeoEloquent

The Neo4j OGM for Laravel
MIT License
633 stars 199 forks source link

Error When Using Debugbar #207

Closed Frisbeetarian closed 4 years ago

Frisbeetarian commented 7 years ago

Trying to use the following package: https://github.com/barryvdh/laravel-debugbar

And I'm getting a "FatalThrowableError in QueryCollector.php line 109: Call to a member function quote() on null" on every page hit.

Issue has been discussed as it relates to Neoeloquent on the Debugbar repo: https://github.com/barryvdh/laravel-debugbar/issues/306

Mulkave commented 6 years ago

Quoting this answer: https://github.com/barryvdh/laravel-debugbar/issues/306#issuecomment-82631504

Either it should check if getPdo() returns something and if so call ->quote() or use a generic quote method OR ignore/drop the query altogether (so no query logging for custom Connection).

getPdo() isn't used in NE, not sure about the compatibility with Debugbar. If you've used it I'd love to merge a PR implementing this compatibility.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.