I have a class
@interface QLCBBenefitModel : CBLModel
@property (nonatomic, copy, readonly) NSString *title;
@property (copy) NSArray<QLCBCategoryModel *> *categories;
+ (Class) itemClassForArrayProperty: (NSString*)property;
@end
@implementation QLCBBenefitModel
@dynamic title;
@dynamic categories;
+ (Class) itemClassForArrayProperty: (NSString*)property
{
return [QLCBCategoryModel class];
}
@end
interface QLCBCategoryModel : NSObject
@property NSString *name;
@property NSString *slug;
@end
When I try to access the categories property on an instance, I get the following error message:
Dynamic property QLCBBenefitModel.categories has type '@"NSArray"' unsupported by QLCBBenefitModel
Anybody know how resolve this problem?