Skip to content

Fix schema foreign ID support for tables with non-standard primary key#53442

Merged
taylorotwell merged 5 commits intolaravel:11.xfrom
willrowe:hotfix/constrained-primary-key
Nov 8, 2024
Merged

Fix schema foreign ID support for tables with non-standard primary key#53442
taylorotwell merged 5 commits intolaravel:11.xfrom
willrowe:hotfix/constrained-primary-key

Conversation

@willrowe
Copy link
Contributor

@willrowe willrowe commented Nov 7, 2024

This allows foreignIdFor to automatically set the referenced column name for tables/models with non-standard primary key names.

@taylorotwell taylorotwell merged commit 71dfdc0 into laravel:11.x Nov 8, 2024
@willrowe willrowe deleted the hotfix/constrained-primary-key branch November 8, 2024 14:23
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