In your situation I suggest not using +modelForNewDocumentInDatabase: at all.
Instead create the docID first, then get a (new) document for it, then get the
model for that document:
NSString* newDocID = …whatever you want, incorporating some sort of
UUID…;
CBLDocument* doc = [_db documentWithID: newDocID];
MySubclass *model = [MySubclass modelForDocument: doc];
—Jens
--
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/CF365034-3BBE-456F-9F0A-CB12D5BFB863%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.