Skip to content

Commit c388fd9

Browse files
committed
The method wasn’t encoding the dictionary into PFOject properly - date wasn’t converted. #945
1 parent 159c0d6 commit c388fd9

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Parse/PFObject.m

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1633,11 +1633,7 @@ + (instancetype)objectWithClassName:(NSString *)className {
16331633
}
16341634

16351635
+ (instancetype)objectWithClassName:(NSString *)className dictionary:(NSDictionary *)dictionary {
1636-
PFObject *object = [self objectWithClassName:className];
1637-
[dictionary enumerateKeysAndObjectsUsingBlock:^(id key, id obj, BOOL *stop) {
1638-
object[key] = obj;
1639-
}];
1640-
return object;
1636+
return [self _objectFromDictionary:dictionary defaultClassName:className completeData:YES];
16411637
}
16421638

16431639
+ (instancetype)objectWithoutDataWithClassName:(NSString *)className objectId:(NSString *)objectId {

0 commit comments

Comments
 (0)