forked from laravel/framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[11.x] Don't touch BelongsTo relationship when it doesn't exist (lara…
…vel#52407) * [11.x] Don't touch BelongsTo relationship when it doesn't exist Currently, MorphTo and BelongsToMany check for relation existence before sending the update query to the database. This adds that check to the BelongsTo relationship. `getParentKey()` can be used to find the child foreign key value * Update BelongsTo.php --------- Co-authored-by: Taylor Otwell <[email protected]>
- Loading branch information
1 parent
fd0f381
commit dd649c6
Showing
2 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
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
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