Skip to content
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] Use the dedicated key getters in BelongsTo #48509

Merged
merged 4 commits into from
Sep 26, 2023
Merged

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

merged 4 commits into from
Sep 26, 2023

Conversation

iamgergo
Copy link
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
Copy link
Contributor Author

iamgergo commented Sep 23, 2023

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
20 checks passed
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.

None yet

2 participants