currently if you add a property to the Mantle subclass via e.g a swift extension then the adapter will fail to deserialize it (CD > mantle)
Changing the adapter to ignore unlisted keys, fixes this.
The question is, is this behavior (default key mapping) commonly depended upon by developers, and would you accept a pull request with a change to this behavior (maybe with an on/off switch)
the change to MTLManagedObjectAdapter.m
- (NSString *)managedObjectKeyForKey:(NSString *)key {
NSParameterAssert(key != nil);
id managedObjectKey = self.managedObjectKeysByPropertyKey[key];
if ([managedObjectKey isEqual:NSNull.null]) return nil;
return managedObjectKey;
}
currently if you add a property to the Mantle subclass via e.g a swift extension then the adapter will fail to deserialize it (CD > mantle) Changing the adapter to ignore unlisted keys, fixes this. The question is, is this behavior (default key mapping) commonly depended upon by developers, and would you accept a pull request with a change to this behavior (maybe with an on/off switch)
the change to MTLManagedObjectAdapter.m