{"action":"created","issue":{"url":"https://api.github.com/repos/tgriesser/bookshelf/issues/1397","repository_url":"https://api.github.com/repos/tgriesser/bookshelf","labels_url":"https://api.github.com/repos/tgriesser/bookshelf/issues/1397/labels{/name}","comments_url":"https://api.github.com/repos/tgriesser/bookshelf/issues/1397/comments","events_url":"https://api.github.com/repos/tgriesser/bookshelf/issues/1397/events","html_url":"https://github.com/tgriesser/bookshelf/pull/1397","id":179557097,"number":1397,"title":"Add foreignKeyTarget to relation methods","user":{"login":"ricardogama","id":8616978,"avatar_url":"https://avatars.githubusercontent.com/u/8616978?v=3","gravatar_id":"","url":"https://api.github.com/users/ricardogama","html_url":"https://github.com/ricardogama","followers_url":"https://api.github.com/users/ricardogama/followers","following_url":"https://api.github.com/users/ricardogama/following{/other_user}","gists_url":"https://api.github.com/users/ricardogama/gists{/gist_id}","starred_url":"https://api.github.com/users/ricardogama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ricardogama/subscriptions","organizations_url":"https://api.github.com/users/ricardogama/orgs","repos_url":"https://api.github.com/users/ricardogama/repos","events_url":"https://api.github.com/users/ricardogama/events{/privacy}","received_events_url":"https://api.github.com/users/ricardogama/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tgriesser/bookshelf/labels/applicable","name":"applicable","color":"0052cc"},{"url":"https://api.github.com/repos/tgriesser/bookshelf/labels/weak/no%20tests","name":"weak/no tests","color":"b60205"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-27T17:18:55Z","updated_at":"2016-09-30T08:45:24Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/tgriesser/bookshelf/pulls/1397","html_url":"https://github.com/tgriesser/bookshelf/pull/1397","diff_url":"https://github.com/tgriesser/bookshelf/pull/1397.diff","patch_url":"https://github.com/tgriesser/bookshelf/pull/1397.patch"},"body":"This PR adds `foreignKeyTarget` argument to the relation methods above, in order to specify which column of the target model is referenced by the foreign key:\r\n\r\n* `hasOne`\r\n* `hasMany`\r\n* `belongsTo`\r\n* `belongsToMany` (Also adds `otherKeyTarget`)\r\n\r\nCloses #1388 "},"comment":{"url":"https://api.github.com/repos/tgriesser/bookshelf/issues/comments/250692232","html_url":"https://github.com/tgriesser/bookshelf/pull/1397#issuecomment-250692232","issue_url":"https://api.github.com/repos/tgriesser/bookshelf/issues/1397","id":250692232,"user":{"login":"vellotis","id":308074,"avatar_url":"https://avatars.githubusercontent.com/u/308074?v=3","gravatar_id":"","url":"https://api.github.com/users/vellotis","html_url":"https://github.com/vellotis","followers_url":"https://api.github.com/users/vellotis/followers","following_url":"https://api.github.com/users/vellotis/following{/other_user}","gists_url":"https://api.github.com/users/vellotis/gists{/gist_id}","starred_url":"https://api.github.com/users/vellotis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vellotis/subscriptions","organizations_url":"https://api.github.com/users/vellotis/orgs","repos_url":"https://api.github.com/users/vellotis/repos","events_url":"https://api.github.com/users/vellotis/events{/privacy}","received_events_url":"https://api.github.com/users/vellotis/received_events","type":"User","site_admin":false},"created_at":"2016-09-30T08:45:24Z","updated_at":"2016-09-30T08:45:24Z","body":"Solves #1388 #1372"}}
{"actor":{"display_login":"vellotis"}}