You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.
if (managedObject == nil) {
managedObject = [entityDescriptionClass insertNewObjectForEntityForName:entityName inManagedObjectContext:context];
} else {
// Our CoreData store already has data for this model, we need to merge
[self mergeValuesOfModel:model forKeysFromManagedObject:managedObject];
}
I see that you give user a chance to merge themselves before those serializeAttribute blocks get called.
I just wonder what mergeValueForKey:fromManagedObject: is used for? It seems to be overridden by serializeAttribute blocks
The text was updated successfully, but these errors were encountered:
This method is supposed to work the other way around - it may be used to update your model with the values from the existing managed object. Frankly, I don't particularly like how it throws a naked managed object at you, but that's how it is for now.
In MTLManagedObjectAdapater.m
I see that you give user a chance to merge themselves before those
serializeAttribute
blocks get called.I just wonder what
mergeValueForKey:fromManagedObject:
is used for? It seems to be overridden byserializeAttribute
blocksThe text was updated successfully, but these errors were encountered: