{"action":"opened","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/15587","repository_url":"https://api.github.com/repos/laravel/framework","labels_url":"https://api.github.com/repos/laravel/framework/issues/15587/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/15587/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/15587/events","html_url":"https://github.com/laravel/framework/issues/15587","id":179026795,"number":15587,"title":"Sum aggregate query return null instead of 0","user":{"login":"binita-engg89","id":12759130,"avatar_url":"https://avatars.githubusercontent.com/u/12759130?v=3","gravatar_id":"","url":"https://api.github.com/users/binita-engg89","html_url":"https://github.com/binita-engg89","followers_url":"https://api.github.com/users/binita-engg89/followers","following_url":"https://api.github.com/users/binita-engg89/following{/other_user}","gists_url":"https://api.github.com/users/binita-engg89/gists{/gist_id}","starred_url":"https://api.github.com/users/binita-engg89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binita-engg89/subscriptions","organizations_url":"https://api.github.com/users/binita-engg89/orgs","repos_url":"https://api.github.com/users/binita-engg89/repos","events_url":"https://api.github.com/users/binita-engg89/events{/privacy}","received_events_url":"https://api.github.com/users/binita-engg89/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-24T11:58:13Z","updated_at":"2016-09-24T11:58:13Z","closed_at":null,"body":"- Laravel Version: 5.2.0\r\n- PHP Version:5.6.4\r\n- Database Driver & Version:\r\n\"jenssegers/mongodb\": \"^2.2\"\r\n### Description:\r\n$qty= $this->makeModel()\r\n           ->where('type', '1')\r\n            ->sum('qty');\r\n\r\nreturns $qty = null in 5.2 \r\n\r\nand return 0 in 5.1  please tell how to solve this issue.\r\n\r\nI want 0 in value\r\n\r\n### Steps To Reproduce:\r\n"}}
{"actor":{"display_login":"binita-engg89"}}