Documentation

This commit is contained in:
Gwendal Roué committed 2015-09-06 18:59:21 +02:00
1 parent c659849ced
commit f3b1471fc4
1 file changed
+3 -8
+3 -8
View File
@@ -31,15 +31,10 @@ Usage:
override var storedDatabaseDictionary: [String: DatabaseValueConvertible?] {
return ["birthDate": birthDate, ...]
}
override func updateFromRow(row: Row) {
for (column, dbv) in row {
switch column {
case "birthDate": birthDate = dbv.value()
case ...
}
}
super.updateFromRow(row) // Subclasses are required to call super.
if let dbv = row["birthDate"] { birthDate = dbv.value() }
...
}
}