README.md

This commit is contained in:
Gwendal Roué committed 2015-11-10 08:24:12 +01:00
1 parent 81fdcba4c9
commit f127079c62
1 file changed
+4 -4
+4 -4
View File
@@ -1496,10 +1496,10 @@ The `updateFromRow` method updates properties from the columns found in the row.
> // BAD: this implementation will eventually crash
> // with "No such column" errors:
> override func updateFromRow(row: Row) {
> self.id = row.value(named: "id")
> self.url = row.value(named: "url")
> self.name = row.value(named: "name")
> self.email = row.value(named: "email")
> id = row.value(named: "id")
> url = row.value(named: "url")
> name = row.value(named: "name")
> email = row.value(named: "email")
> super.updateFromRow(row)
> }
> ```