{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback/issues/2213","repository_url":"https://api.github.com/repos/strongloop/loopback","labels_url":"https://api.github.com/repos/strongloop/loopback/issues/2213/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback/issues/2213/comments","events_url":"https://api.github.com/repos/strongloop/loopback/issues/2213/events","html_url":"https://github.com/strongloop/loopback/issues/2213","id":146800404,"number":2213,"title":"Include from many tables, when hasmany points to base model, is it possible?","user":{"login":"sm-g","id":7280273,"avatar_url":"https://avatars.githubusercontent.com/u/7280273?v=3","gravatar_id":"","url":"https://api.github.com/users/sm-g","html_url":"https://github.com/sm-g","followers_url":"https://api.github.com/users/sm-g/followers","following_url":"https://api.github.com/users/sm-g/following{/other_user}","gists_url":"https://api.github.com/users/sm-g/gists{/gist_id}","starred_url":"https://api.github.com/users/sm-g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sm-g/subscriptions","organizations_url":"https://api.github.com/users/sm-g/orgs","repos_url":"https://api.github.com/users/sm-g/repos","events_url":"https://api.github.com/users/sm-g/events{/privacy}","received_events_url":"https://api.github.com/users/sm-g/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/strongloop/loopback/labels/triage","name":"triage","color":"eb6420"},{"url":"https://api.github.com/repos/strongloop/loopback/labels/waiting","name":"waiting","color":"eeeeee"}],"state":"closed","locked":false,"assignee":{"login":"loay","id":1986928,"avatar_url":"https://avatars.githubusercontent.com/u/1986928?v=3","gravatar_id":"","url":"https://api.github.com/users/loay","html_url":"https://github.com/loay","followers_url":"https://api.github.com/users/loay/followers","following_url":"https://api.github.com/users/loay/following{/other_user}","gists_url":"https://api.github.com/users/loay/gists{/gist_id}","starred_url":"https://api.github.com/users/loay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loay/subscriptions","organizations_url":"https://api.github.com/users/loay/orgs","repos_url":"https://api.github.com/users/loay/repos","events_url":"https://api.github.com/users/loay/events{/privacy}","received_events_url":"https://api.github.com/users/loay/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2016-04-08T02:59:40Z","updated_at":"2016-06-03T15:18:16Z","closed_at":"2016-06-03T15:18:16Z","body":"I have City with many Names on different langs, when every translated string located in its own table:\r\n```\r\n{\r\n  \"name\": \"City\",\r\n  \"properties\": {\r\n    \"namelstringid\": {\r\n      \"type\": \"number\",\r\n      \"required\": true\r\n    }\r\n  },\r\n  \"relations\": {\r\n    \"name\": {\r\n      \"type\": \"belongsTo\",\r\n      \"model\": \"lstring\",\r\n      \"foreignKey\": \"namelstringid\"\r\n    }\r\n  }\r\n}\r\n```\r\n```\r\n{\r\n  \"name\": \"lstring\",\r\n  \"relations\": {\r\n    \"ftses\": {\r\n      \"type\": \"hasMany\",\r\n      \"model\": \"LstringFtsBase\",\r\n      \"foreignKey\": \"docid\"\r\n    }\r\n  }\r\n}\r\n```\r\nand many `lstring_ftsN` tables\r\n```\r\n{\r\n  \"name\": \"lstring_fts1\",\r\n  \"base\": \"LstringFtsBase\"\r\n}\r\n```\r\n\r\nCan I make `names` relation to load all related strings with single query, `Cities?filter[where][_id]=1&filter[include][names]`?"},"comment":{"url":"https://api.github.com/repos/strongloop/loopback/issues/comments/223608021","html_url":"https://github.com/strongloop/loopback/issues/2213#issuecomment-223608021","issue_url":"https://api.github.com/repos/strongloop/loopback/issues/2213","id":223608021,"user":{"login":"loay","id":1986928,"avatar_url":"https://avatars.githubusercontent.com/u/1986928?v=3","gravatar_id":"","url":"https://api.github.com/users/loay","html_url":"https://github.com/loay","followers_url":"https://api.github.com/users/loay/followers","following_url":"https://api.github.com/users/loay/following{/other_user}","gists_url":"https://api.github.com/users/loay/gists{/gist_id}","starred_url":"https://api.github.com/users/loay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loay/subscriptions","organizations_url":"https://api.github.com/users/loay/orgs","repos_url":"https://api.github.com/users/loay/repos","events_url":"https://api.github.com/users/loay/events{/privacy}","received_events_url":"https://api.github.com/users/loay/received_events","type":"User","site_admin":false},"created_at":"2016-06-03T15:18:16Z","updated_at":"2016-06-03T15:18:16Z","body":"I am closing this issue for now. If the problem still persists, please leave a comment and I will re-open the case. Thanks. "}}
{"actor":{"display_login":"loay"}}