mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-26 04:07:50 +00:00
Typo in AssociationsBasics.md
This commit is contained in:
1 parent
36d3607565
commit
b40e4e58e1
1 file changed
+3
-3
@@ -589,8 +589,8 @@ struct Book: TableRecord {
|
||||
case id, title, authorId, translatorId
|
||||
}
|
||||
|
||||
static let authorForeignKey = ForeignKey([Columns.authorId]))
|
||||
static let translatorForeignKey = ForeignKey([Columns.translatorId]))
|
||||
static let authorForeignKey = ForeignKey([Columns.authorId])
|
||||
static let translatorForeignKey = ForeignKey([Columns.translatorId])
|
||||
}
|
||||
```
|
||||
|
||||
@@ -598,7 +598,7 @@ When the destination table of a foreign key does not define any primary key, you
|
||||
|
||||
```swift
|
||||
struct Book: TableRecord {
|
||||
static let authorForeignKey = ForeignKey(["authorId"], to: ["id"]))
|
||||
static let authorForeignKey = ForeignKey(["authorId"], to: ["id"])
|
||||
static let author = belongsTo(Person.self, using: authorForeignKey)
|
||||
}
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user