issue-4-core-data-migration icon indicating copy to clipboard operation
issue-4-core-data-migration copied to clipboard

fixed recursion issue in searching mapping model

Open samnung opened this issue 11 years ago • 2 comments

[NSMappingModel mappingModelFromBundles:@[[NSBundle mainBundle]]
                         forSourceModel:sourceModel
                       destinationModel:model];

when params sourceModel and model are equal (v2), this method returns mapping model from v2 to v3

see this diff https://gist.github.com/pnc/2321704

samnung avatar Aug 19 '14 09:08 samnung

@jnagel33 sorry, it is quite time since I used this thing. Did you try mine version of the migrator? It should fix the recursion problem.

samnung avatar Nov 14 '16 11:11 samnung

@samnung No worries, I figured it was a long shot. I have only seen the issue once ever so it's not easily reproducible. That's why I was curious if you knew of a scenario that caused this. I will probably end up adding this code since I don't think will negatively impact anything. Thanks

jnagel33 avatar Nov 14 '16 16:11 jnagel33