Skip to content

Model Cascading and Model Collections #114

@sanandrea

Description

@sanandrea

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions