magicalpanda / MagicalRecord

Super Awesome Easy Fetching for Core Data!
Other
10.8k stars 1.79k forks source link

relatedByAttribute key was being ignored #1129

Closed dwa012 closed 8 years ago

dwa012 commented 8 years ago

When setting the relationship in an import, then relatedByAttribute was being ignored. I changed it to use the primary key as the fallback.

tonyarnold commented 8 years ago

The contents of this patch look good to me, but would you mind indenting the code using the same style as the rest of the project? There's a clang-format configuration provided at the root of the repository, or you can do it by hand (given it's only a few lines). Thanks!