title: Foreign Key mapping in Core Data
body: <p>I understand that Core Data is not a relational database but I need to understand how it can be used to support a client/server model where the server uses a Rails, ActiveRecord, Mysql setup.</p>
  
  <p>My app is pulling records from the server using JSON and I am mapping the relationships using Core Data.</p>
  
  <p>The Foreign Key in the SQLLite database is showing the PK field of the related table even though I have set the User Info Key/Value of primaryAttributeKey => id. (I can't remember where I saw this mentioned.)</p>
  
  <p>Is there any way to setup the models so they will use my id as the PK so that it will clean up the export of related data back to the server?</p>