Skip to content

Commit 300f666

Browse files
committed
Use existing decoder for converting values.
1 parent f18162b commit 300f666

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Parse/PFObject.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1634,7 +1634,9 @@ + (instancetype)objectWithClassName:(NSString *)className {
16341634

16351635
+ (instancetype)objectWithClassName:(NSString *)className dictionary:(NSDictionary *)dictionary {
16361636
PFObject *object = [self objectWithClassName:className];
1637-
[object _mergeAfterSaveWithResult:dictionary decoder:[PFDecoder objectDecoder]];
1637+
[dictionary enumerateKeysAndObjectsUsingBlock:^(id key, id obj, BOOL *stop) {
1638+
object[key] = [[PFDecoder objectDecoder] decodeObject:obj];
1639+
}];
16381640
return object;
16391641
}
16401642

0 commit comments

Comments
 (0)