{"action":"created","issue":{"url":"https://api.github.com/repos/backbee/BbCoreJs/issues/241","labels_url":"https://api.github.com/repos/backbee/BbCoreJs/issues/241/labels{/name}","comments_url":"https://api.github.com/repos/backbee/BbCoreJs/issues/241/comments","events_url":"https://api.github.com/repos/backbee/BbCoreJs/issues/241/events","html_url":"https://github.com/backbee/BbCoreJs/pull/241","id":58892831,"number":241,"title":"Forcing get pagination response to be an array","user":{"login":"ndufreche","id":426139,"avatar_url":"https://avatars.githubusercontent.com/u/426139?v=3","gravatar_id":"","url":"https://api.github.com/users/ndufreche","html_url":"https://github.com/ndufreche","followers_url":"https://api.github.com/users/ndufreche/followers","following_url":"https://api.github.com/users/ndufreche/following{/other_user}","gists_url":"https://api.github.com/users/ndufreche/gists{/gist_id}","starred_url":"https://api.github.com/users/ndufreche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndufreche/subscriptions","organizations_url":"https://api.github.com/users/ndufreche/orgs","repos_url":"https://api.github.com/users/ndufreche/repos","events_url":"https://api.github.com/users/ndufreche/events{/privacy}","received_events_url":"https://api.github.com/users/ndufreche/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/backbee/BbCoreJs/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-25T12:19:46Z","updated_at":"2015-02-25T13:02:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/backbee/BbCoreJs/pulls/241","html_url":"https://github.com/backbee/BbCoreJs/pull/241","diff_url":"https://github.com/backbee/BbCoreJs/pull/241.diff","patch_url":"https://github.com/backbee/BbCoreJs/pull/241.patch"},"body":"I create this PR, because currently I have a problem with the response type in getCollectionAction from the User Rest Controller. This evol permit to avoid bad typing response from the server and help the JS to continuing working correctly.\r\n\r\nI add a new function into Utils class castAsArray to transform an object into an array.\r\nAnd I use that function into group and user controller to avoid the badly response type from the BackBee REST server."},"comment":{"url":"https://api.github.com/repos/backbee/BbCoreJs/issues/comments/75955871","html_url":"https://github.com/backbee/BbCoreJs/pull/241#issuecomment-75955871","issue_url":"https://api.github.com/repos/backbee/BbCoreJs/issues/241","id":75955871,"user":{"login":"mickaelandrieu","id":1247388,"avatar_url":"https://avatars.githubusercontent.com/u/1247388?v=3","gravatar_id":"","url":"https://api.github.com/users/mickaelandrieu","html_url":"https://github.com/mickaelandrieu","followers_url":"https://api.github.com/users/mickaelandrieu/followers","following_url":"https://api.github.com/users/mickaelandrieu/following{/other_user}","gists_url":"https://api.github.com/users/mickaelandrieu/gists{/gist_id}","starred_url":"https://api.github.com/users/mickaelandrieu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mickaelandrieu/subscriptions","organizations_url":"https://api.github.com/users/mickaelandrieu/orgs","repos_url":"https://api.github.com/users/mickaelandrieu/repos","events_url":"https://api.github.com/users/mickaelandrieu/events{/privacy}","received_events_url":"https://api.github.com/users/mickaelandrieu/received_events","type":"User","site_admin":false},"created_at":"2015-02-25T13:02:37Z","updated_at":"2015-02-25T13:02:37Z","body":"for now, I think we can \"deal with it\", and remove this patch when the PHP will become more \"consistent\": what do you think @fkroockmann  ?\r\n\r\n"}}