Hello,

I am designing an application where there are three classes.

class A derived by CBLJSONEncoding and implementing protocol
class B also derived by CBLJSONEncoding and also keeping NSArray of class A.
class C derived by CBLModel class and keeping the NSArray of class B.

class A: CBLJSONEncoding
{

}

class B: CBLJSONEncoding
{

NSArray *arrayOfA; -- here only addresses of A comes
};

class C: CBLModel
{

NSArray * arrayofB; - this gets encoded properly
}

When I am saving the object. the encoded Json seems to work fine till the level 
of class C and class B.
But the class A is not being encoded and instead only address of Class A are 
coming within Class B.

Could you please guide how to hold the CBLJSONEncoding class within 
CBLJSONEncoding dervied class?

I am also not able to find proper example of NestedModeling. On how to use

(Class)nsarrayitem{ return [NSArrayItemClassl class]; }
Kindly guide.

Thanks
Abhishek

-- 
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/0e04cb7a-05cd-418b-9830-56a3803ce21b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to