Objectmapper: objectForMapping not called

Created on 12 Aug 2016  路  4Comments  路  Source: tristanhimmelman/ObjectMapper

Hello guys.

I've updated pods (ObjectMapper (1.4.0)) a moment ago and had found out that func objectForMapping(map: Map) not called anymore when I call ParsingService<NSManagedObjectInheritant>().parseObject(Object).

It causes objects being duplicated. Please advise if I should use other function now.

UPD: Installed version 1.3. It works fine.

Most helpful comment

objectForMapping(map: Map) was moved into
protocol StaticMappable: Mappable {
...
}

Replace Mappable with StaticMappable wherever you need to use objectForMapping

All 4 comments

objectForMapping(map: Map) was moved into
protocol StaticMappable: Mappable {
...
}

Replace Mappable with StaticMappable wherever you need to use objectForMapping

Thanks @jpstern

I also ran into this recently and it took some time to debug.

I would have much preferred this to come with a version 2.0 ObjectMapper since this was a breaking change. Is there a particular reason it wasn't?

@jakecraige my mistake, this change definitely warranted a major version number change.

Was this page helpful?
0 / 5 - 0 ratings