AFNetworking/AFIncrementalStore — pull request #263 by Pretz (2013-12-18 22:25:30+00:00)
Title: Fix #233: Remove cached backing ObjectIDs when they are unregistered

When objects were unregistered from AFIncrementalStore, references to the unregistered objects' ObjectIDs were left in `_backingObjectIDByObjectID`. Since the objects were unregistered (and most likely deleted from the backing store), inconsistencies would arise when objects that were deleted from the backing store were recreated (for instance if an object was removed from a relationship on the remote server, deleted locally, and then added back) as discussed in #233.

It appears that when an objectID is recreated, it still hashes equal to the previous objectID for an object with the same resource identifier, so `_backingObjectIDByObjectID` would return an objectID referring to an object deleted from the backing store. This change removes the backing object ID from the cache when the objectID is unregistered.