Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$beforeDelete #112

Closed
gerhardsletten opened this issue Apr 13, 2016 · 4 comments
Closed

$beforeDelete #112

gerhardsletten opened this issue Apr 13, 2016 · 4 comments
Assignees

Comments

@gerhardsletten
Copy link

How to handle stuff that needs to be done before a model gets deleted?

@koskimas
Copy link
Collaborator

Currently there is no hook for that. I could consider adding it if other people also want this.

@yachaka
Copy link

yachaka commented Apr 16, 2016

That would be nice!
This would open up the way for handling cascade deletes.

@gerhardsletten
Copy link
Author

Other use-cases is:

  • Remove 'linked' binaries when the model is deleted
  • If your model contains a cached summary of related models
  • Other cache invalidation stuff

@jmealo
Copy link

jmealo commented Apr 18, 2016

Lifecycle functions are great to have. Maybe they should be designed all in one go to make sure they work well together?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants