{"action":"closed","issue":{"url":"https://api.github.com/repos/moloquent/moloquent/issues/40","repository_url":"https://api.github.com/repos/moloquent/moloquent","labels_url":"https://api.github.com/repos/moloquent/moloquent/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/moloquent/moloquent/issues/40/comments","events_url":"https://api.github.com/repos/moloquent/moloquent/issues/40/events","html_url":"https://github.com/moloquent/moloquent/issues/40","id":189418324,"number":40,"title":"Query Builder error","user":{"login":"Xplouder","id":2997254,"avatar_url":"https://avatars.githubusercontent.com/u/2997254?v=3","gravatar_id":"","url":"https://api.github.com/users/Xplouder","html_url":"https://github.com/Xplouder","followers_url":"https://api.github.com/users/Xplouder/followers","following_url":"https://api.github.com/users/Xplouder/following{/other_user}","gists_url":"https://api.github.com/users/Xplouder/gists{/gist_id}","starred_url":"https://api.github.com/users/Xplouder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xplouder/subscriptions","organizations_url":"https://api.github.com/users/Xplouder/orgs","repos_url":"https://api.github.com/users/Xplouder/repos","events_url":"https://api.github.com/users/Xplouder/events{/privacy}","received_events_url":"https://api.github.com/users/Xplouder/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-11-15T15:14:12Z","updated_at":"2016-11-15T19:34:58Z","closed_at":"2016-11-15T19:34:58Z","body":"![github_report](https://cloud.githubusercontent.com/assets/2997254/20310642/a64233fc-ab44-11e6-849a-c39d301099e6.png)\r\nI'm using a mixed databases, mysql is the default and mongodb the second.\r\nMy only 2 classes looks like this:\r\n\r\n**User**: (pretty much a normal model beside the replace of the `use Moloquent\\Eloquent\\Model`)\r\n```\r\n<?php\r\n\r\nnamespace App;\r\n\r\nuse Moloquent\\Eloquent\\Model as Moloquent;\r\n\r\nclass User extends Moloquent\r\n{\r\n    protected $connection = 'mysql';\r\n    protected $table = 'users';\r\n    ...\r\n```\r\n\r\n**Post**:\r\n\r\n```\r\n<?php\r\n\r\nnamespace App;\r\n\r\nuse Moloquent\\Eloquent\\Model as Moloquent;\r\nuse Moloquent\\Eloquent\\HybridRelations;\r\n\r\nclass Post extends Moloquent\r\n{\r\n    use HybridRelations;\r\n    protected $connection = 'mongodb';\r\n    protected $collection = 'posts';\r\n    ...\r\n```\r\n\r\nAccording with the stacktrace the erro comes from this line:\r\n```$user =  User::where('email', $socialUser->email)->first();```\r\n\r\nI'm doing anything wrong?\r\nLet me know if you want to see any other piece of the code."}}
{"actor":{"display_login":"iceheat"}}