Doc ID of a CBLModel Object

51 views
Skip to first unread message

Steve

unread,
Oct 7, 2014, 6:31:11 AM10/7/14
to mobile-c...@googlegroups.com
If I have an object which is a subclass of CBLModel, how do I get the ID of the document that object maps to?

Steve

unread,
Oct 7, 2014, 6:55:32 AM10/7/14
to mobile-c...@googlegroups.com
I think I figured it out.

NSString *docID = someObject.document.documentID;        // Where someObject is a subclass of CBLModel

Traun Leyden

unread,
Oct 8, 2014, 3:44:52 PM10/8/14
to mobile-c...@googlegroups.com
Thanks for posting the solution.
--
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 mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/ffb21bc0-0343-4d74-b834-8c9feb690337%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages