README.md

This commit is contained in:
Gwendal Roué committed 2015-10-23 08:49:52 +02:00
1 parent 34f911399a
commit 6790a4d6ab
1 file changed
+1 -1
+1 -1
View File
@@ -1267,7 +1267,7 @@ Yes, that's not very [DRY](http://c2.com/cgi/wiki?DontRepeatYourself), and there
> :point_up: **Note**: The `updateFromRow` method MUST NOT assume the presence of particular columns. The Record class itself reserves the right to call `updateFromRow` with arbitrary columns. The following implementation is thus discouraged:
>
> ```swift
> // BAD: this implementation may crash with "No such column" errors:
> // BAD: this implementation will eventually crash with "No such column" errors:
> override func updateFromRow(row: Row) {
> self.id = row.value(named: "id")
> self.age = row.value(named: "age")