Skip to content
This repository was archived by the owner on Dec 5, 2019. It is now read-only.
This repository was archived by the owner on Dec 5, 2019. It is now read-only.

What is mergeValueForKey:fromManagedObject: used for? #1

@onmyway133

Description

@onmyway133

In MTLManagedObjectAdapater.m

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions