codeigniter-base-model icon indicating copy to clipboard operation
codeigniter-base-model copied to clipboard

Hi,The soft delete is great! I have some advice

Open cstkwjk opened this issue 13 years ago • 1 comments
trafficstars

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?

cstkwjk avatar Nov 15 '12 04:11 cstkwjk

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)

jamierumbelow avatar Nov 17 '12 23:11 jamierumbelow