> On Sep 23, 2014, at 3:23 PM, MobDev <[email protected]> wrote:
> 
> I am not using @dynamic for any of the variables. is that required? 

Yes, otherwise they're just ordinary properties and not associated with the 
document. In the docs 
<http://developer.couchbase.com/mobile/develop/guides/couchbase-lite/native-api/model/index.html#subclassing>,
 there's even a red-lined "Caution!" section describing the exact mistake you 
made.

> do I have to registerClass:forDocumentType?

Only if you want to dynamically create models of the appropriate class based on 
the document type. If you already know the class of model you want, you can 
just call [MyModelClass modelForDocument: …] and not have to register.

—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/D196A4B5-5341-47FE-83CF-8B7A477EDF1F%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to