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

docs: Fix foreign key KDocs that swap parent and child references #2004

Merged
merged 1 commit into from
Feb 22, 2024

Conversation

bog-walk
Copy link
Member

Running tests with references and properties of the data class ForeignKeyConstraint have made it clear that I incorrectly swapped the referencing table ("child") with the referenced table ("parent") in the class KDocs.

The KDocs now properly match the fields/behavior seen when the class members are accessed in tests.

The KDocs for functions that create foreign keys have also been cleaned up and samples added.

KDocs introduced to the ForeignKeyConstraint data class incorrectly switches
parent references table columns with child referencing table columns.

The KDocs for the functions that create this constraint have also been cleaned
up and samples added.
* @see [references]
* @sample org.jetbrains.exposed.sql.tests.shared.dml.JoinTests.testJoin04
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is supposed to be a link to an overload function, but it goes nowhere because of KT-15984.

@bog-walk bog-walk requested review from e5l and joc-a February 22, 2024 04:13
@bog-walk bog-walk merged commit f8ca8ef into main Feb 22, 2024
5 checks passed
@bog-walk bog-walk deleted the bog-walk/fix-foreign-key-kdocs branch February 22, 2024 13:35
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