On Tuesday, September 30, 2014 at 1:42:52 PM UTC-4, Jens Alfke wrote: > > .isNew will return YES if the model was created by > -initWithNewDocumentInDatabase:, but not if it was created with > +modelForDocument:, even if the document has no revisions. That's arguably > a bug. >
Incidentally, I'm also seeing .isNew returning false when the model was just created with initWithNewDocumentinDatabase, which surprises me. The currentRevision is nil, though, so I can go that route too. -- 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/af688da9-b6f8-40d3-a14d-3e14c6251f3c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
