Skip to content

[10.x] Use the dedicated key getters in BelongsTo - #48509

Merged
taylorotwell merged 4 commits into
laravel:10.xfrom
iamgergo:10.x
Sep 26, 2023
Merged

taylorotwell merged 4 commits into
laravel:10.xfrom
iamgergo:10.x

Conversation

@iamgergo

Copy link
Copy Markdown
Contributor

It is possible to customize the resolution of the owner and foreign keys. However in the match method the code uses the keys directly, so the custom getters would not have any effect.

Related PR: #47378

@iamgergo

iamgergo commented Sep 23, 2023 •

Copy link
Copy Markdown
Contributor Author

I mark it as draft until I update the tests to properly handle this.

The testModelsAreProperlyMatchedToParents needs to be updated.

@iamgergo
iamgergo marked this pull request as draft September 23, 2023 06:40
@iamgergo
iamgergo marked this pull request as ready for review September 23, 2023 09:26
@taylorotwell
taylorotwell merged commit 13dcd8f into laravel:10.x Sep 26, 2023
timacdonald pushed a commit to timacdonald/framework that referenced this pull request Sep 27, 2023
* [10.x] Use the dedicated key getters in BelongsTo

* fix method call

* Update tests

* fix style ci
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