HI First I would like to know if there is a way to do some "beforeDelete" events? I didn't find any of this sort on docs https://docs.phalcon.io/en/3.2/db-models-events
next, I would like to know if it's possible to stop the transaction to do an update instead of delete ?
I made an Interface SoftDeletableModelInterface
and a trait SoftDeletableTrait
Actually, in my Trait, I have a property $deleted
(and getter/setter) and I would like to add the beforeDelete event to stop the deletion and set $deleted
property to true.
Thanks