magicalpanda/MagicalRecord — pull request #723 by rocket0423 (2014-04-03 17:58:44+00:00)
Title: Fixed relationship data import key lookup

Fixed an issue where if you have more than one mappedKeyName it would not search through all of the mappedKeyNames to find the correct key for the lookup for a relationship object thus causing a duplicate item to be created in the database. The current implementation takes the first key and assumes it is the correct key. The expected workflow is to check the first key mappedKeyName then if there is no value for that key to move onto the next key mappedKeyName.1 until either a value is found or all mappedKeyNames have gone through.