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
165 stars 48 forks source link

added save_quietly method on Model #810

Closed JarriqTheTechie closed 1 year ago

JarriqTheTechie commented 1 year ago

This method calls the save method on a model without firing the saved & saving observer events. Saved/Saving are toggled back on once save_quietly has been ran.

Instead of calling:

User().save(...)

you can use this:

User.save_quietly(...)

JarriqTheTechie commented 1 year ago

@josephmancuso / @girardinsamuel please review.