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 update_quietly method on Model #811

Closed JarriqTheTechie closed 1 year ago

JarriqTheTechie commented 1 year ago

This method calls the update method on a model without firing the updated & updating observer events. Updated/Updating are toggled back on once update_quietly has been ran.

Instead of calling:

User().update(...)

you can use this:

User.update_quietly(...)

JarriqTheTechie commented 1 year ago

@josephmancuso / @girardinsamuel please review.

JarriqTheTechie commented 1 year ago

Hi @josephmancuso, I'll make the changes this weekend. Been having a boxing match with COVID.

josephmancuso commented 1 year ago

of course no worries just doing some cleaning up