You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the moment nothing is done to be able to cancel the removing of the resource, but it could be useful for some domain reasons.
Create a new type of event (PreDeleteEvent?) accepting these methods:
cancelDelete(): void
isDeletion(): boolean
delete(): void
The last listener which calls cancel or delete takes the way on other previous.
If isDeletion() return false, the call to $this->dataStore->remove($data) should be avoided.
The text was updated successfully, but these errors were encountered:
Biig\Melodiia\Crud\Controller\Delete
For the moment nothing is done to be able to cancel the removing of the resource, but it could be useful for some domain reasons.
Create a new type of event (
PreDeleteEvent
?) accepting these methods:The last listener which calls
cancel
ordelete
takes the way on other previous.If
isDeletion()
return false, the call to$this->dataStore->remove($data)
should be avoided.The text was updated successfully, but these errors were encountered: