jamierumbelow / codeigniter-base-model

⛔️DEPRECATED CodeIgniter base CRUD model to remove repetition and increase productivity
MIT License
1.05k stars 478 forks source link

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

Open cstkwjk opened 12 years ago

cstkwjk commented 12 years ago

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?

jamierumbelow commented 12 years ago

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)