{"action":"opened","issue":{"url":"https://api.github.com/repos/curlyjason/simpleblog/issues/9","labels_url":"https://api.github.com/repos/curlyjason/simpleblog/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/curlyjason/simpleblog/issues/9/comments","events_url":"https://api.github.com/repos/curlyjason/simpleblog/issues/9/events","html_url":"https://github.com/curlyjason/simpleblog/issues/9","id":89610442,"number":9,"title":"In CrudData, foreignKeys needs to be built on a different index","user":{"login":"dreamingmind","id":1307216,"avatar_url":"https://avatars.githubusercontent.com/u/1307216?v=3","gravatar_id":"","url":"https://api.github.com/users/dreamingmind","html_url":"https://github.com/dreamingmind","followers_url":"https://api.github.com/users/dreamingmind/followers","following_url":"https://api.github.com/users/dreamingmind/following{/other_user}","gists_url":"https://api.github.com/users/dreamingmind/gists{/gist_id}","starred_url":"https://api.github.com/users/dreamingmind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dreamingmind/subscriptions","organizations_url":"https://api.github.com/users/dreamingmind/orgs","repos_url":"https://api.github.com/users/dreamingmind/repos","events_url":"https://api.github.com/users/dreamingmind/events{/privacy}","received_events_url":"https://api.github.com/users/dreamingmind/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-19T16:49:11Z","updated_at":"2015-06-19T16:49:11Z","closed_at":null,"body":"foreignKeys is an array of association data indexed on the foreign key specified (or assumed) in the relationship. This was done so, when looping through columns, I could easily see if a the column was used as a foreign key.\r\n\r\nHowever, since a foreign key can be used in multiple associations, only the last association is being stored in the foreignKeys() array. :-(\r\n\r\nThis refactor is going to take a little effort since I'm pretty far down the road with this system."}}