I have a Behavior which update a record instead of delete from beforeDelete
callback.
public function beforeDelete(Model $model, $cascade = true) {
[...]
return true;
}
When I return true
, the deletion proccess continues, instead of stop. I wan't to stop propagation of next event which is delete
.
I have read about stopPropagation()
function of CakeEvent
but don't know what to do and how to use correctly inside a behavior. May you help-me?