-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "FIX on CanBeOneOfMany trait giving erroneous results (#46309)" (
- Loading branch information
Showing
2 changed files
with
12 additions
and
60 deletions.
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
496d12d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
framework/src/Illuminate/Database/Eloquent/Relations/Concerns/CanBeOneOfMany.php
Line 77 in c3e679c
$keyName = $this->query->getModel()->getKeyName();
will became an empty array key in$columns
array. Finally it will generate SQL with bad syntax where empty column name will be in query.Mentioned here #46463 - ignored because of unsupported version but I mentioned that i still exists in a code 10.x