RestKit/RestKit — pull request #587 by cfis (2012-03-08 06:40:01+00:00)
Title: connectRelationship Using Incorrect ManagedObjectContext

I have an application that has two Core Data databases (sqllite) open at the same time. The changes to the development branch over the last few months have made this much easier to support.

However, connectRelatonship still makes an assumption about which managedObjectContext to use. In my case, it guesses wrong, using a managedObjectContext for the wrong database.

This patch fixes the issue by having connectRelationship use the managedObjectContext associated with the destination object, since that is the correct managedObjectContext.

Thanks - Charlie