mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-27 04:14:21 +00:00
Merge pull request #456 from diatoming/patch-1
fix typo in AssociationsBasics.md
This commit is contained in:
1 file changed
+3
-3
@@ -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
|
||||
[Fetching Aggregated Values]: ../README.md#fetching-aggregated-values
|
||||
Reference in new issue
Block a user