MasoniteFramework / orm

Masonite ORM is a beautiful Python ORM. It's also a nearly drop in replacement of the Orator ORM
https://orm.masoniteproject.com
MIT License
161 stars 47 forks source link

added delete_quietly method on Model #809

Closed JarriqTheTechie closed 1 year ago

JarriqTheTechie commented 1 year ago

This method calls the delete method on a model without firing the delete & deleting observer events. Instead of calling:

User().delete(...)

you can use this:

User.delete_quietly(...)

JarriqTheTechie commented 1 year ago

@girardinsamuel / @josephmancuso please review.

Marlysson commented 1 year ago

Shouldn't activate again the events after this operation as save and updte quietly does with .with_events() method?

JarriqTheTechie commented 1 year ago

Thanks @Marlysson @josephmancuso