-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Labels
Description
It seems it is not possible to automatically inflate the embedded models (cascade) or collection relationships. At the current status one should manually create the embedded models.
e.g.
//Restaurant.h
@interface Restaurant : LBPersistedModel
@property (nonatomic, copy) NSString* phoneNumber;
@property (nonatomic, strong) Address* locationAddress;
@end
and
//Address.h
@interface Address : LBModel
@property (nonatomic, copy) NSString* city;
@property (nonatomic, copy) NSString* street;
@property (nonatomic, copy) NSString* state;
@property (nonatomic, copy) NSString* zipCode;
@end
When retrieving restaurant from server the address field is a NSDictionary.