Hi,

Perhaps I'm missing something, but I'm following the example here for 
creating inverse relationships:

https://github.com/couchbase/couchbase-lite-ios/issues/606

I've got a similar model:

// in interface file of TFForm class

@property (nonatomic, strong) NSArray *fields;

// in implementation file of TFForm class

@dynamic fields;

+ (Class)fieldsItemClass {
 return [TFField class]; 
} 

+ (NSString *)fieldsInverseRelation { 
 return @"form"; 
}


Where TFField has a "form" property which is of type TFForm.

When I access a TFForm instance and try to log the "fields" property, I get 
null back. Should it automatically create a view and a query for that? Or 
do I have to do it all manually by creating my own view and query?

I see your example has "albums" as a read-only property. Not sure how you 
would add an album to an artist if the property is read-only though.

Thanks,

Brendan

-- 
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/77e5c4c6-9b85-4515-a714-9c33eca8926c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to