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

[5.7] Replace newQuery() with newModelQuery() #26158

Merged
merged 1 commit into from
Oct 18, 2018
Merged

[5.7] Replace newQuery() with newModelQuery() #26158

merged 1 commit into from
Oct 18, 2018

Conversation

staudenmeir
Copy link
Contributor

#24240 added newModelQuery() (under a different name) that returns a new query without scopes, $with or $withCount. The PR used the new method to replace newQuery() where it caused issues or added unnecessary complexity (INSERT/UPDATE/DELETE queries).

This PR replaces the remaining occurrences of newQuery() in UPDATE/DELETE queries.

@taylorotwell taylorotwell merged commit 5892daa into laravel:5.7 Oct 18, 2018
@staudenmeir staudenmeir deleted the new-model-query branch October 18, 2018 13:28
taylorotwell added a commit that referenced this pull request Jan 23, 2019
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