{"action":"opened","issue":{"url":"https://api.github.com/repos/spider/spider/issues/37","labels_url":"https://api.github.com/repos/spider/spider/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/spider/spider/issues/37/comments","events_url":"https://api.github.com/repos/spider/spider/issues/37/events","html_url":"https://github.com/spider/spider/issues/37","id":99867002,"number":37,"title":"Scalar values and collections with a single value","user":{"login":"chrismichaels84","id":5412413,"avatar_url":"https://avatars.githubusercontent.com/u/5412413?v=3","gravatar_id":"","url":"https://api.github.com/users/chrismichaels84","html_url":"https://github.com/chrismichaels84","followers_url":"https://api.github.com/users/chrismichaels84/followers","following_url":"https://api.github.com/users/chrismichaels84/following{/other_user}","gists_url":"https://api.github.com/users/chrismichaels84/gists{/gist_id}","starred_url":"https://api.github.com/users/chrismichaels84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrismichaels84/subscriptions","organizations_url":"https://api.github.com/users/chrismichaels84/orgs","repos_url":"https://api.github.com/users/chrismichaels84/repos","events_url":"https://api.github.com/users/chrismichaels84/events{/privacy}","received_events_url":"https://api.github.com/users/chrismichaels84/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spider/spider/labels/discussion","name":"discussion","color":"009800"},{"url":"https://api.github.com/repos/spider/spider/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-09T05:32:19Z","updated_at":"2015-08-09T05:32:19Z","closed_at":null,"body":"As it stands, `getScalar()` only works if the database returns a scalar value. Should `getScalar()` also work for a `Collection` returned with a single scalar value?\r\n\r\nFor instance `$query->select('name')->from('users')->byId(3)` should return only a collection with a name property (and meta). `$results->getScalar()` should return the `string` name."}}