mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-29 05:05:34 +08:00
Passing @metadata through to the destinationObject in RelationShip mapping.
This commit is contained in:
@@ -323,8 +323,8 @@ static NSString * const RKMetadataKeyPathPrefix = @"@metadata.";
|
||||
concreteMapping = (RKObjectMapping *)mapping;
|
||||
}
|
||||
|
||||
NSDictionary *dictionaryRepresentation = [representation isKindOfClass:[NSDictionary class]] ? representation : @{ [NSNull null] : representation };
|
||||
return [self.dataSource mappingOperation:self targetObjectForRepresentation:dictionaryRepresentation withMapping:concreteMapping inRelationship:relationshipMapping];
|
||||
id mappingSourceObject = [[RKMappingSourceObject alloc] initWithObject:representation metadata:self.metadata];
|
||||
return [self.dataSource mappingOperation:self targetObjectForRepresentation:mappingSourceObject withMapping:concreteMapping inRelationship:relationshipMapping];
|
||||
}
|
||||
|
||||
- (NSDate *)parseDateFromString:(NSString *)string
|
||||
|
||||
Reference in New Issue
Block a user