-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
[10.x] Make the updateOrCreate
methods in relations use firstOrCreate
behind the scenes
#48213
Merged
taylorotwell
merged 4 commits into
laravel:10.x
from
mpyw:use-first-or-create-in-relations
Aug 29, 2023
Merged
[10.x] Make the updateOrCreate
methods in relations use firstOrCreate
behind the scenes
#48213
taylorotwell
merged 4 commits into
laravel:10.x
from
mpyw:use-first-or-create-in-relations
Aug 29, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mpyw
changed the title
Make the
[10.x] Make the Aug 28, 2023
updateOrCreate
methods in relations use firstOrCreate
updateOrCreate
methods in relations use firstOrCreate
mpyw
changed the title
[10.x] Make the
[10.x] Make the Aug 28, 2023
updateOrCreate
methods in relations use firstOrCreate
updateOrCreate
methods in relations use firstOrCreate
behind the scenes
mpyw
force-pushed
the
use-first-or-create-in-relations
branch
from
August 28, 2023 02:30
4cc6211
to
892c9ba
Compare
mpyw
force-pushed
the
use-first-or-create-in-relations
branch
2 times, most recently
from
August 28, 2023 03:48
a6226a6
to
73265b4
Compare
mpyw
force-pushed
the
use-first-or-create-in-relations
branch
from
August 28, 2023 03:56
73265b4
to
5e1d32f
Compare
mpyw
commented
Aug 29, 2023
mpyw
force-pushed
the
use-first-or-create-in-relations
branch
from
August 29, 2023 04:08
a8394fc
to
0c6ebdb
Compare
tonysm
added a commit
to tonysm/framework
that referenced
this pull request
Sep 25, 2023
…rstOrCreate` behind the scenes (laravel#48213)" This reverts commit e1ae507.
taylorotwell
pushed a commit
that referenced
this pull request
Sep 25, 2023
…#48531) * Avoid using createOrFirst inside other *OrCreate methods * Revert "[10.x] Make the `updateOrCreate` methods in relations use `firstOrCreate` behind the scenes (#48213)" This reverts commit e1ae507. * Revert "Enhancing `updateOrCreate()` to Use `firstOrCreate()` (#48160)" This reverts commit 80e0262. * Fix mocked firstOrCreate tests
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related to:
updateOrCreate()
to UsefirstOrCreate()
#48160firstOrCreate
methods in relations usecreateOrFirst
behind the scenes #48192Add consistent fix for
updateOrCreate
based on #48160, since there was a consistent fix forfirstOrCreate
in #48192.