From c07d9cc8cb1678e239b490c539d359a7e39d1764 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Thu, 10 Dec 2015 22:30:46 +0100 Subject: [PATCH] README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 85683beb3..d5d0549e8 100644 --- a/README.md +++ b/README.md @@ -1550,7 +1550,7 @@ dbQueue.inDatabase { db in } ``` -`DatabasePersistable` and `MutableDatabasePersistable` are identical, except for the three methods that are involved in insertion: +`DatabasePersistable` and `MutableDatabasePersistable` are identical, except for the three methods that are involved in insertion. ```swift protocol MutableDatabasePersistable { @@ -1568,6 +1568,7 @@ protocol DatabasePersistable : MutableDatabasePersistable { } ``` +> :point_up: **Note**: Classes should prefer adopting `DatabasePersistable` over `MutableDatabasePersistable`, even if they mutate themselves in `didInsertWithRowID(:forColumn:)`. They'll avoid strange compiler errors when they insert an instance stored in a a `let` variable (see [SR-142](https://bugs.swift.org/browse/SR-142)). ### Customizing the CRUD methods