{"action":"created","issue":{"url":"https://api.github.com/repos/swoft-cloud/swoft/issues/428","repository_url":"https://api.github.com/repos/swoft-cloud/swoft","labels_url":"https://api.github.com/repos/swoft-cloud/swoft/issues/428/labels{/name}","comments_url":"https://api.github.com/repos/swoft-cloud/swoft/issues/428/comments","events_url":"https://api.github.com/repos/swoft-cloud/swoft/issues/428/events","html_url":"https://github.com/swoft-cloud/swoft/issues/428","id":374745552,"node_id":"MDU6SXNzdWUzNzQ3NDU1NTI=","number":428,"title":"DB类查询后返回实体类，在调用toArray建议调整","user":{"login":"Wfuren","id":29916783,"node_id":"MDQ6VXNlcjI5OTE2Nzgz","avatar_url":"https://avatars3.githubusercontent.com/u/29916783?v=4","gravatar_id":"","url":"https://api.github.com/users/Wfuren","html_url":"https://github.com/Wfuren","followers_url":"https://api.github.com/users/Wfuren/followers","following_url":"https://api.github.com/users/Wfuren/following{/other_user}","gists_url":"https://api.github.com/users/Wfuren/gists{/gist_id}","starred_url":"https://api.github.com/users/Wfuren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wfuren/subscriptions","organizations_url":"https://api.github.com/users/Wfuren/orgs","repos_url":"https://api.github.com/users/Wfuren/repos","events_url":"https://api.github.com/users/Wfuren/events{/privacy}","received_events_url":"https://api.github.com/users/Wfuren/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-10-28T11:52:20Z","updated_at":"2018-11-29T01:39:30Z","closed_at":null,"author_association":"NONE","body":"![default](https://user-images.githubusercontent.com/29916783/47615527-e12faa80-daea-11e8-880b-de18e1408253.png)\r\n如果没有数据返回直接调用toArray会有一个异常报错，建议调整下toArray"},"comment":{"url":"https://api.github.com/repos/swoft-cloud/swoft/issues/comments/442673246","html_url":"https://github.com/swoft-cloud/swoft/issues/428#issuecomment-442673246","issue_url":"https://api.github.com/repos/swoft-cloud/swoft/issues/428","id":442673246,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MjY3MzI0Ng==","user":{"login":"nangge","id":15973657,"node_id":"MDQ6VXNlcjE1OTczNjU3","avatar_url":"https://avatars0.githubusercontent.com/u/15973657?v=4","gravatar_id":"","url":"https://api.github.com/users/nangge","html_url":"https://github.com/nangge","followers_url":"https://api.github.com/users/nangge/followers","following_url":"https://api.github.com/users/nangge/following{/other_user}","gists_url":"https://api.github.com/users/nangge/gists{/gist_id}","starred_url":"https://api.github.com/users/nangge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nangge/subscriptions","organizations_url":"https://api.github.com/users/nangge/orgs","repos_url":"https://api.github.com/users/nangge/repos","events_url":"https://api.github.com/users/nangge/events{/privacy}","received_events_url":"https://api.github.com/users/nangge/received_events","type":"User","site_admin":false},"created_at":"2018-11-29T01:39:30Z","updated_at":"2018-11-29T01:39:30Z","author_association":"NONE","body":"那为什么不能返回一个`items`为空的`Collection`对象；这样的话直接用结果判断应该也没问题；\r\n另外类似于`laravel 、TP5`这种传统MVC框架提供的分页类都会有一些渲染分页的方法和属性，如果返回数据为空时返回的不是分页对象而是一个空数组，那对于渲染时会存在较大问题"}}
{"actor":{"display_login":"nangge"}}