Skip to content
This repository was archived by the owner on Oct 20, 2023. It is now read-only.

Add support for afterDelete() callback#159

Open
inigoflores wants to merge 1 commit intoCakeDC:developfrom
inigoflores:feature/implement-afterDelete
Open

Add support for afterDelete() callback#159
inigoflores wants to merge 1 commit intoCakeDC:developfrom
inigoflores:feature/implement-afterDelete

Conversation

@inigoflores
Copy link

The proposed code dispatches a Model.afterDelete event once the softdelete has been completed, enabling the afterDelete() callback in the model.

It also prevents the afterSave() callback from being called by setting 'callbacks' => false when updating the record.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant