Vinelab / NeoEloquent

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

WhereRaw should work even when using scopes #309

Closed SimonThordal closed 3 years ago

SimonThordal commented 5 years ago

When combining whereRaw with a global scope such as softdeletes we would get problems with addBindings and columnCountForWhereClause that weren't expecting a raw query.

SimonThordal commented 5 years ago

Wrong approach, scopes that include a whereRaw statement still fail

SimonThordal commented 5 years ago

Fixed problem /w scopes containing raw queries

stale[bot] commented 3 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.