Merge pull request #456 from diatoming/patch-1

fix typo in AssociationsBasics.md
This commit is contained in:
Gwendal Roué authored and GitHub committed 2018-12-07 13:13:04 +01:00
commit 802575c505
1 file changed
+3 -3
+3 -3
View File
@@ -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