JetBrains / Exposed

Kotlin SQL Framework
http://jetbrains.github.io/Exposed/
Apache License 2.0
8.28k stars 690 forks source link

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

Closed bog-walk closed 7 months ago

bog-walk commented 7 months ago

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.