Breakthrough on parent/child MOC setup

This commit is contained in:
Blake Watters
2012-07-13 14:11:48 -04:00
parent f0706dbdbf
commit cfa0df1841
10 changed files with 45 additions and 326 deletions

View File

@@ -149,6 +149,7 @@ BOOL RKObjectIsValueEqualToValue(id sourceValue, id destinationValue);
RKDynamicObjectMappingMatcher* matcher = [[RKDynamicObjectMappingMatcher alloc] initWithKey:keyPath value:value primaryKeyAttribute:sourceKeyPath];
RKConnectionMapping* mapping = [RKConnectionMapping connectionMappingForRelationship:relationshipName fromKeyPath:sourceKeyPath toKeyPath:destinationKeyPath withMapping:objectOrDynamicMapping matcher:matcher];
[self addConnectionMapping:mapping];
[matcher release];
}
- (void)connectRelationship:(NSString *)relationshipName withMapping:(RKObjectMappingDefinition *)objectOrDynamicMapping fromKeyPath:(NSString *)sourceKeyPath toKeyPath:(NSString *)destinationKeyPath usingEvaluationBlock:(BOOL (^)(id data))block
@@ -156,6 +157,7 @@ BOOL RKObjectIsValueEqualToValue(id sourceValue, id destinationValue);
RKDynamicObjectMappingMatcher* matcher = [[RKDynamicObjectMappingMatcher alloc] initWithPrimaryKeyAttribute:sourceKeyPath evaluationBlock:block];
RKConnectionMapping* mapping = [RKConnectionMapping connectionMappingForRelationship:relationshipName fromKeyPath:sourceKeyPath toKeyPath:destinationKeyPath withMapping:objectOrDynamicMapping matcher:matcher];
[self addConnectionMapping:mapping];
[matcher release];
}
- (id)defaultValueForMissingAttribute:(NSString *)attributeName