Let's say I have a model (subclass of CBLModel) with many children. Is this the suggested way of setting up the relationship? Is there a better way to do it so when the parent gets deleted, the children get deleted too?
MYModel *parent = [MYModel initWithNewDocumentInDatabase:_database]; parent.children = [NSMutableArray new]; MYModel *child = [MYModel initWithNewDocumentInDatabase:_database]; [child save:NULL]; [parent.children addObject:child]; [parent save:NULL]; -- 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/3bdb9917-7cd2-4cf2-baeb-f2d48fc65b9b%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
