RestKit/RestKit — pull request #1271 by cfis (2013-03-06 08:31:49+00:00)
Title: Fix RKReplaceAssignmentPolicy

RKReplaceAssignmentPolicy did not work on one to many relationships if one of the old values in the collection was also present in the new collection. The problem was that new values for the relationship were gathered before the old values were deleted. Therefore if one of the new values was the same as the old value, the valueForRelationship collection would contain a deleted managed object - causing lots of problems.

Also fixed:
* The if statement near line 674 was incorrectly negated
* Setting the relationship value around line 676 was redundant since it was done in the mapCoreDataToManyRelationshipValue:withMapping method.