What is the relation between delete and update in Model?

calling $obj->delete() triggered four events

  1. beforedelete
  2. afterdelete
  3. beforeupdate
  4. afterupdate

I don't want to trigger "beforeupdate" or "afterupdate". What shall I do? Thanks!



53.1k
  1. beforeupdate 4. afterupdate

Are you using a softdelete Behavior? Is it cascade deleting to another related model?