You haven’t declared what type of objects are in nestedObjectArray. All the
model class can tell is that the property is an NSArray, but it doesn’t know
what’s in it. By default it just decodes the JSON objects in it normally, so in
your case you get NSDictionaries.
To declare what the objects in the array should get decoded as, you need to add
a method to your implementation like this:
+ (Class) nestedObjectArrayItemClass {
return [NestedObject class];
}
(This should be described in the CBLModel documentation. If it isn’t, let me
know and I’ll get it added.)
—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/989C1E7D-9FFC-42E2-8650-F0A675EF3D26%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.