Skip to content
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

restore doesn't return affected rows #277

Open
foxmedo opened this issue Oct 17, 2018 · 1 comment
Open

restore doesn't return affected rows #277

foxmedo opened this issue Oct 17, 2018 · 1 comment

Comments

@foxmedo
Copy link

foxmedo commented Oct 17, 2018

hello,

restore function doesn't return the number of affected rows

any one has same problem as me ?

@foxmedo
Copy link
Author

foxmedo commented Oct 19, 2018

Solution for the problem above

change

if($affected_rows = $this->_database->update($this->table,array($this->_deleted_at_field=>NULL)))

by

if($affected_rows = $this->update(array($this->_deleted_at_field=>NULL)))

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

No branches or pull requests

1 participant