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

Add Table::foreignKey() #790

Merged
merged 3 commits into from
Dec 22, 2024
Merged

Add Table::foreignKey() #790

merged 3 commits into from
Dec 22, 2024

Conversation

markstory
Copy link
Member

Add a factory method that allows the ForeignKey fluent method API to be used to define foreign keys instead of having to remember all the positional parameters.

I'm considering deprecating addForeignKeyWithName as setting a name on a foreign key is simpler with the new builder method.

Refs #770

Add a factory method that allows the `ForeignKey` fluent method API to
be used to define foreign keys instead of having to remember all the
positional parameters.

I'm considering deprecating `addForeignKeyWithName` as setting a name
on a foreign key is simpler with the new builder method.

Refs #770
@markstory markstory added this to the 4.x (CakePHP 5) milestone Dec 21, 2024
@markstory markstory merged commit a377db8 into 4.next Dec 22, 2024
16 checks passed
@markstory markstory deleted the fk-builder branch December 22, 2024 20:20
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.

1 participant