mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-06-18 07:29:15 +08:00
Don't create unnecessary objects when mapping temporary managed objects POST'd without identification attributes. closes #1149
This commit is contained in:
@@ -23,7 +23,8 @@
|
||||
|
||||
@implementation RKObjectMappingOperationDataSource
|
||||
|
||||
- (id)mappingOperation:(RKMappingOperation *)mappingOperation targetObjectForRepresentation:(NSDictionary *)representation withMapping:(RKObjectMapping *)mapping
|
||||
- (id)mappingOperation:(RKMappingOperation *)mappingOperation targetObjectForRepresentation:(NSDictionary *)representation
|
||||
withMapping:(RKObjectMapping *)mapping inRelationship:(RKRelationshipMapping *)relationshipMapping
|
||||
{
|
||||
return [mapping.objectClass new];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user