Vinelab / NeoEloquent

The Neo4j OGM for Laravel
MIT License
641 stars 201 forks source link

Querying soft deleted models #169

Closed Frisbeetarian closed 4 years ago

Frisbeetarian commented 8 years ago

Is there support for withTrashed? I'm trying to access soft deleted models and I'm getting

Call to undefined method Vinelab\NeoEloquent\Query\Builder::withTrashed()

KinaneD commented 8 years ago

Yes it is supported. Which version of NE you are using? The syntax should be something like this, where you can change forceDelete() to any execution methods (e.g. get, first, firstOrFail, etc.): $this->model->withTrashed()->where('id', '1234567')->forceDelete();

Frisbeetarian commented 8 years ago

Using version 1.3.2. Odd as I'm rooting through the query builder and can't seem to find the withTrashed method.

I'm trying to perform the following query Profile::withTrashed()->where('id', id)->first();

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.