{"action":"closed","issue":{"url":"https://api.github.com/repos/strongloop/generator-loopback/issues/118","labels_url":"https://api.github.com/repos/strongloop/generator-loopback/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/generator-loopback/issues/118/comments","events_url":"https://api.github.com/repos/strongloop/generator-loopback/issues/118/events","html_url":"https://github.com/strongloop/generator-loopback/issues/118","id":112233938,"number":118,"title":"Do not allow relation name to be the same as property name","user":{"login":"crandmck","id":2925364,"avatar_url":"https://avatars.githubusercontent.com/u/2925364?v=3","gravatar_id":"","url":"https://api.github.com/users/crandmck","html_url":"https://github.com/crandmck","followers_url":"https://api.github.com/users/crandmck/followers","following_url":"https://api.github.com/users/crandmck/following{/other_user}","gists_url":"https://api.github.com/users/crandmck/gists{/gist_id}","starred_url":"https://api.github.com/users/crandmck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crandmck/subscriptions","organizations_url":"https://api.github.com/users/crandmck/orgs","repos_url":"https://api.github.com/users/crandmck/repos","events_url":"https://api.github.com/users/crandmck/events{/privacy}","received_events_url":"https://api.github.com/users/crandmck/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/strongloop/generator-loopback/labels/%23wip","name":"#wip","color":"ededed"},{"url":"https://api.github.com/repos/strongloop/generator-loopback/labels/Beginner%20Friendly","name":"Beginner Friendly","color":"00DD00"},{"url":"https://api.github.com/repos/strongloop/generator-loopback/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/strongloop/generator-loopback/labels/UX","name":"UX","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":{"login":"jannyHou","id":12554153,"avatar_url":"https://avatars.githubusercontent.com/u/12554153?v=3","gravatar_id":"","url":"https://api.github.com/users/jannyHou","html_url":"https://github.com/jannyHou","followers_url":"https://api.github.com/users/jannyHou/followers","following_url":"https://api.github.com/users/jannyHou/following{/other_user}","gists_url":"https://api.github.com/users/jannyHou/gists{/gist_id}","starred_url":"https://api.github.com/users/jannyHou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jannyHou/subscriptions","organizations_url":"https://api.github.com/users/jannyHou/orgs","repos_url":"https://api.github.com/users/jannyHou/repos","events_url":"https://api.github.com/users/jannyHou/events{/privacy}","received_events_url":"https://api.github.com/users/jannyHou/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-10-19T21:11:07Z","updated_at":"2015-11-24T14:49:27Z","closed_at":"2015-11-24T14:49:27Z","body":"The issue https://github.com/strongloop/loopback-datasource-juggler/issues/735 noted that although the generator allows it, a relation name should not be the same as the property name.\r\n\r\nThe generator should provide an appropriate error message and disallow the choice.\r\n"}}