To answer my own question, this seemed to have worked:

NSArray *unsavedModels = self.databaseDocument.couchDatabase.unsavedModels;

for (CBLModel *model in unsavedModels) {

[model revertChanges];

}

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/90f75812-3b47-424b-bda4-5f19f395c7d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to