{"action":"opened","issue":{"url":"https://api.github.com/repos/Vivify-Ideas/admin-panel-generator/issues/2","labels_url":"https://api.github.com/repos/Vivify-Ideas/admin-panel-generator/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Vivify-Ideas/admin-panel-generator/issues/2/comments","events_url":"https://api.github.com/repos/Vivify-Ideas/admin-panel-generator/issues/2/events","html_url":"https://github.com/Vivify-Ideas/admin-panel-generator/issues/2","id":97784004,"number":2,"title":"Feature request: Ability to map to friendly name instead of id for foreign keys","user":{"login":"nateritter","id":198798,"avatar_url":"https://avatars.githubusercontent.com/u/198798?v=3","gravatar_id":"","url":"https://api.github.com/users/nateritter","html_url":"https://github.com/nateritter","followers_url":"https://api.github.com/users/nateritter/followers","following_url":"https://api.github.com/users/nateritter/following{/other_user}","gists_url":"https://api.github.com/users/nateritter/gists{/gist_id}","starred_url":"https://api.github.com/users/nateritter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nateritter/subscriptions","organizations_url":"https://api.github.com/users/nateritter/orgs","repos_url":"https://api.github.com/users/nateritter/repos","events_url":"https://api.github.com/users/nateritter/events{/privacy}","received_events_url":"https://api.github.com/users/nateritter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-28T19:31:47Z","updated_at":"2015-07-28T19:31:47Z","closed_at":null,"body":"In the \"columns\" config array, I'd love to be able to specify an alias of sorts for the foreign key columns.\r\n\r\nFor instance...\r\n\r\n```\r\n'columns' => [\r\n    'seasons' => ['season_years'],\r\n    'weeks' => [\r\n        'season_id' => ['alias' => 'season_years'],\r\n        'week_num'\r\n    ]\r\n]\r\n```\r\n\r\nWhen it's displayed, it shows the 'label' from the 'season_years' form and the value from the 'season_years' field instead of the 'season_id'.\r\n\r\nSeason | Week\r\n------------ | -------------\r\n2015-16 | Foo\r\n2015-16 | Bar\r\n\r\nInstead of how it currently is required...\r\n\r\nSeason ID | Week\r\n------------ | -------------\r\n1 | Foo\r\n2 | Bar\r\n\r\n"}}