CodeIgniter-MY_Model icon indicating copy to clipboard operation
CodeIgniter-MY_Model copied to clipboard

restore doesn't return affected rows

Open foxmedo opened this issue 7 years ago • 1 comments

hello,

restore function doesn't return the number of affected rows

any one has same problem as me ?

foxmedo avatar Oct 17 '18 11:10 foxmedo

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)))

foxmedo avatar Oct 19 '18 10:10 foxmedo