RowAdapter documentation

This commit is contained in:
Gwendal Roué committed 2016-05-21 08:28:10 +02:00
1 parent 92682cb11f
commit a1d9bf297f
1 file changed
+2 -2
+2 -2
View File
@@ -1279,7 +1279,7 @@ class Person : RowConvertible {
class Book : RowConvertible {
var id: Int64?
var title: String
var person: Author?
var author: Person?
init(_ row: Row) {
id = row.value(named: "id")
@@ -1287,7 +1287,7 @@ class Book : RowConvertible {
// Consume the subrow:
if let authorRow = row.subrow(named: "author") {
person = Person(row: authorRow)
author = Person(row: authorRow)
}
}
}