diff --git a/Documentation/AssociationsBasics.md b/Documentation/AssociationsBasics.md index 08eee72c5..f2a6c1db0 100644 --- a/Documentation/AssociationsBasics.md +++ b/Documentation/AssociationsBasics.md @@ -563,8 +563,8 @@ Your help is needed. You have to instruct GRDB which foreign key to use: ```swift struct Book: TableRecord { // Define foreign keys - static let authorForeignKey = ForeignKey(["authorId"])) - static let translatorForeignKey = ForeignKey(["translatorId"])) + static let authorForeignKey = ForeignKey(["authorId"]) + static let translatorForeignKey = ForeignKey(["translatorId"]) // Use foreign keys to define associations: static let author = belongsTo(Person.self, using: authorForeignKey) @@ -1985,4 +1985,4 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. [TableRecord]: ../README.md#tablerecord-protocol [association requests]: #building-requests-from-associations [Good Practices for Designing Record Types]: GoodPracticesForDesigningRecordTypes.md -[Fetching Aggregated Values]: ../README.md#fetching-aggregated-values \ No newline at end of file +[Fetching Aggregated Values]: ../README.md#fetching-aggregated-values