Skip to content

fix exception in collection if model use soft delete #6

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

Merged
merged 4 commits into from
Jan 16, 2017

Conversation

MetaDone
Copy link

hello! if the model is used SoftDeletes and the model is removed, it throws an exception in the Illuminate\Database\Eloquent\Collection. I have added tracking availability SoftDeletes model

@pmatseykanets pmatseykanets merged commit 5e37a0b into pmatseykanets:master Jan 16, 2017
pmatseykanets added a commit that referenced this pull request Jan 16, 2017
When performing a search apply withoutTrashed() filter only if index is "internal" (stored in model's table).
Filter out all non-existing models when mapping search results to models.
@pmatseykanets
Copy link
Owner

Thanks! 👍 reworked and merged to master. Hopefully tag a new release soon.

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

Successfully merging this pull request may close these issues.

2 participants