Skip to content
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.

Restore only works with passing model #171

Open
rbruhn opened this issue Dec 20, 2017 · 0 comments
Open

Restore only works with passing model #171

rbruhn opened this issue Dec 20, 2017 · 0 comments

Comments

@rbruhn
Copy link

rbruhn commented Dec 20, 2017

On the dev branch there was a fix for restoring a record #123

$entity = $id instanceof Model ? $id : $this->find($id);

Restore will only work if you are passing the instance of the model you are restoring. The find() method used in the code will not retrieve a deleted model.

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

No branches or pull requests

1 participant