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

added save_quietly method on Model #810

Merged

Conversation

JarriqTheTechie
Copy link
Contributor

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
Copy link
Contributor Author

@josephmancuso / @girardinsamuel please review.

Copy link
Member

@josephmancuso josephmancuso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed same issue with this PR

@josephmancuso josephmancuso merged commit b7620a8 into MasoniteFramework:2.0 Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants