Association documentation

This commit is contained in:
Gwendal Roué committed 2019-05-20 06:22:07 +02:00
1 parent 64bcbde1ab
commit 4b565ae262
1 file changed
+1 -1
+1 -1
View File
@@ -149,7 +149,7 @@ Generally speaking, associations use the [TableRecord], [FetchableRecord], and [
// Who's prolific?
let authors = try dbQueue.read { db in
try Author
.having(Author.book.count >= 20)
.having(Author.books.count >= 20)
.fetchAll(db) // [Author]
}
```