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.
[8.x] Add
whereBelongsTo()
Eloquent builder method (laravel#38927)
* Add failing test for whereBelongsTo * Implement whereBelongsTo * mock in tests * Add test for relationship guess * Add exceptions * Remove early returns * Update Builder.php * Update Builder.php * Throw RelationNotFoundException * Refactor to catch BadMethodCallException * Remove rogue get_class * move method to trait * qualify foreign key * formatting Co-authored-by: Taylor Otwell <taylorotwell@gmail.com>
- Loading branch information
1 parent
8e697b2
commit cd5988b
Showing
3 changed files
with
107 additions
and
2 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
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