{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/issues/783","repository_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler","labels_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/issues/783/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/issues/783/comments","events_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/issues/783/events","html_url":"https://github.com/strongloop/loopback-datasource-juggler/issues/783","id":120325562,"number":783,"title":"Find with Include not fetching ","user":{"login":"mariohmol","id":5495763,"avatar_url":"https://avatars.githubusercontent.com/u/5495763?v=3","gravatar_id":"","url":"https://api.github.com/users/mariohmol","html_url":"https://github.com/mariohmol","followers_url":"https://api.github.com/users/mariohmol/followers","following_url":"https://api.github.com/users/mariohmol/following{/other_user}","gists_url":"https://api.github.com/users/mariohmol/gists{/gist_id}","starred_url":"https://api.github.com/users/mariohmol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mariohmol/subscriptions","organizations_url":"https://api.github.com/users/mariohmol/orgs","repos_url":"https://api.github.com/users/mariohmol/repos","events_url":"https://api.github.com/users/mariohmol/events{/privacy}","received_events_url":"https://api.github.com/users/mariohmol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-04T03:36:01Z","updated_at":"2016-02-10T20:37:03Z","closed_at":null,"body":"Hy there!\r\n\r\nI have a model called Empresa that has 2 belongsTo relation but when i use Empresa.find with a include param, it do not bring me fields of included models. I'm using mysql and calling this method  using angularjs.\r\n\r\nempresa.json\r\n```\r\n\"relations\": {\r\n   \t\"User\": {\r\n         \"type\": \"belongsTo\",\r\n         \"model\": \"User\",\r\n         \"foreignKey\": \"usuario\"\r\n       },\r\n       \"Local\": {\r\n         \"type\": \"belongsTo\",\r\n         \"model\": \"Local\",\r\n         \"foreignKey\": \"endereco\"\r\n       }\r\n  },\r\n```\r\n\r\nI tested a lot of different calls, checked the database values and is all correct.\r\nI dont know what else i can do, it brings me all data from Empresa but nothing from Local or User.\r\n\r\n```\r\nEmpresa.find({\r\n\t \tinclude: [\"Local\",\"User\"]\r\n\t \t, filter: { where: { operadora: id} } }).$promise.then(function(results){\r\n\t\t\tconsole.log(results);\r\n\t });\r\n```\r\n\r\nMy versions are:\r\n\r\nstrongloop v5.0.1 (node v4.2.2)\r\n├── strong-arc@1.8.4 (b7b568d)\r\n├── strong-build@2.0.6 (d008a3e)\r\n├── strong-deploy@3.1.2 (be6180a)\r\n├── strong-mesh-models@8.1.0 (62e539b)\r\n├── strong-pm@5.0.1 (b96f806)\r\n├── strong-registry@1.1.5 (f46e58f)\r\n├── strong-start@1.3.2 (1327018)\r\n├─┬ strong-supervisor@3.3.1 (1e39220)\r\n│ └── strong-agent@2.0.2 (4ea7ee9)\r\n├── generator-loopback@1.13.0 (a884c0b)\r\n├── node-inspector@0.7.4\r\n└── nodefly-register@0.3.3\r\n\r\nAny tips?"},"comment":{"url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/issues/comments/182573451","html_url":"https://github.com/strongloop/loopback-datasource-juggler/issues/783#issuecomment-182573451","issue_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/issues/783","id":182573451,"user":{"login":"mariohmol","id":5495763,"avatar_url":"https://avatars.githubusercontent.com/u/5495763?v=3","gravatar_id":"","url":"https://api.github.com/users/mariohmol","html_url":"https://github.com/mariohmol","followers_url":"https://api.github.com/users/mariohmol/followers","following_url":"https://api.github.com/users/mariohmol/following{/other_user}","gists_url":"https://api.github.com/users/mariohmol/gists{/gist_id}","starred_url":"https://api.github.com/users/mariohmol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mariohmol/subscriptions","organizations_url":"https://api.github.com/users/mariohmol/orgs","repos_url":"https://api.github.com/users/mariohmol/repos","events_url":"https://api.github.com/users/mariohmol/events{/privacy}","received_events_url":"https://api.github.com/users/mariohmol/received_events","type":"User","site_admin":false},"created_at":"2016-02-10T20:37:02Z","updated_at":"2016-02-10T20:37:02Z","body":"https://github.com/strongloop/loopback/issues/2056#issuecomment-182530830\r\n"}}