Doesn't idForNewDocumentInDatabase: get called by CBL? I overrode it in my CBLModel subclass but it never gets called.
On Tuesday, December 10, 2013 8:23:12 AM UTC-8, Jens Alfke wrote: > > > On Dec 10, 2013, at 7:54 AM, Daniel Ericsson > <[email protected]<javascript:>> > wrote: > > What options are there, if any, for controlling what the _id for a > document connected to a CBLModel is? > > > Just override idForNewDocumentInDatabase. > > */** The document ID to use when creating a new document.* > * Default is nil, which means to assign no ID (the server will assign > one). */* > - (NSString*) idForNewDocumentInDatabase: (CBLDatabase*)db > __attribute__((nonnull)); > > -- 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/39007a4b-1356-4b54-b71a-fd79806b8ad9%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
