line 395 of the latest core code..
$where = $this->trigger('before_delete', $where);
after this code,you use $this->db->..... so ,the result of latest $where nerver worked.
I don't know wheather I am right. if I was wrong,I am sorry.
If I want to add the soft delete time before do the actual update operation,It 's a problem.
My way is
line :399
$result = $this->update_all(array( $this->soft_delete_key => TRUE ));
use your own function to do that ,if I want to add some value before soft delete,
I can use the trigger of before_update and judge wheather the deleted is true
Sorry, I can't understand what you mean. Could you try to explain yourself a bit clearer? Maybe post all your code (and remember to tab it in so it's displayed as code)
line 395 of the latest core code.. $where = $this->trigger('before_delete', $where); after this code,you use $this->db->..... so ,the result of latest $where nerver worked. I don't know wheather I am right. if I was wrong,I am sorry.
If I want to add the soft delete time before do the actual update operation,It 's a problem. My way is line :399 $result = $this->update_all(array( $this->soft_delete_key => TRUE )); use your own function to do that ,if I want to add some value before soft delete, I can use the trigger of before_update and judge wheather the deleted is true
May be it is so bad.... what is your way?