{"action":"created","issue":{"url":"https://api.github.com/repos/babenkoivan/scout-elasticsearch-driver/issues/70","repository_url":"https://api.github.com/repos/babenkoivan/scout-elasticsearch-driver","labels_url":"https://api.github.com/repos/babenkoivan/scout-elasticsearch-driver/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/babenkoivan/scout-elasticsearch-driver/issues/70/comments","events_url":"https://api.github.com/repos/babenkoivan/scout-elasticsearch-driver/issues/70/events","html_url":"https://github.com/babenkoivan/scout-elasticsearch-driver/issues/70","id":304614557,"number":70,"title":"Issue introduced by v3.4.0, selecting unexistent columns","user":{"login":"iget-master","id":9434959,"avatar_url":"https://avatars2.githubusercontent.com/u/9434959?v=4","gravatar_id":"","url":"https://api.github.com/users/iget-master","html_url":"https://github.com/iget-master","followers_url":"https://api.github.com/users/iget-master/followers","following_url":"https://api.github.com/users/iget-master/following{/other_user}","gists_url":"https://api.github.com/users/iget-master/gists{/gist_id}","starred_url":"https://api.github.com/users/iget-master/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iget-master/subscriptions","organizations_url":"https://api.github.com/users/iget-master/orgs","repos_url":"https://api.github.com/users/iget-master/repos","events_url":"https://api.github.com/users/iget-master/events{/privacy}","received_events_url":"https://api.github.com/users/iget-master/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-13T03:24:03Z","updated_at":"2018-03-14T01:15:40Z","closed_at":"2018-03-14T01:15:40Z","author_association":"CONTRIBUTOR","body":"Hi,\r\n\r\nI've just ran `composer update` and loaded v3.4.0. But a serious issue occurred:\r\n\r\nSome of my model's `toSearchableArray()` (most of them) in many applications outputs fields that doesn't exists on the database context, only on ElasticSearch context.\r\n\r\nDidn't read the code changes yet, but looks like the new version is using the `toSearchableArray()` to define the columns to select on query.\r\n\r\nThe problem, as said, is that some coluns only exists on ElasticSearch context, so the Database Query will fail with\r\n\r\n    SQLSTATE[42S22]: Column not found: 1054 Unknown column 'someColumnName' in 'field list'\r\n\r\nInstead of guessing the columns, it should keep the default Eloquent selects (that defaults to `[*]`).\r\n\r\nFor now, rolling back to v3.3.* solves the issue."},"comment":{"url":"https://api.github.com/repos/babenkoivan/scout-elasticsearch-driver/issues/comments/372872019","html_url":"https://github.com/babenkoivan/scout-elasticsearch-driver/issues/70#issuecomment-372872019","issue_url":"https://api.github.com/repos/babenkoivan/scout-elasticsearch-driver/issues/70","id":372872019,"user":{"login":"iget-master","id":9434959,"avatar_url":"https://avatars2.githubusercontent.com/u/9434959?v=4","gravatar_id":"","url":"https://api.github.com/users/iget-master","html_url":"https://github.com/iget-master","followers_url":"https://api.github.com/users/iget-master/followers","following_url":"https://api.github.com/users/iget-master/following{/other_user}","gists_url":"https://api.github.com/users/iget-master/gists{/gist_id}","starred_url":"https://api.github.com/users/iget-master/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iget-master/subscriptions","organizations_url":"https://api.github.com/users/iget-master/orgs","repos_url":"https://api.github.com/users/iget-master/repos","events_url":"https://api.github.com/users/iget-master/events{/privacy}","received_events_url":"https://api.github.com/users/iget-master/received_events","type":"User","site_admin":false},"created_at":"2018-03-14T01:15:40Z","updated_at":"2018-03-14T01:15:40Z","author_association":"CONTRIBUTOR","body":"Hi @babenkoivan. I can confirm that v3.4.1 fixed the issue. Closing for now! Thanks!"}}
{"actor":{"display_login":"iget-master"}}