{"action":"created","issue":{"url":"https://api.github.com/repos/auraphp/Aura.Marshal/issues/27","repository_url":"https://api.github.com/repos/auraphp/Aura.Marshal","labels_url":"https://api.github.com/repos/auraphp/Aura.Marshal/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/auraphp/Aura.Marshal/issues/27/comments","events_url":"https://api.github.com/repos/auraphp/Aura.Marshal/issues/27/events","html_url":"https://github.com/auraphp/Aura.Marshal/issues/27","id":181909341,"number":27,"title":"Entity to array?","user":{"login":"retardedHacker","id":11739114,"avatar_url":"https://avatars.githubusercontent.com/u/11739114?v=3","gravatar_id":"","url":"https://api.github.com/users/retardedHacker","html_url":"https://github.com/retardedHacker","followers_url":"https://api.github.com/users/retardedHacker/followers","following_url":"https://api.github.com/users/retardedHacker/following{/other_user}","gists_url":"https://api.github.com/users/retardedHacker/gists{/gist_id}","starred_url":"https://api.github.com/users/retardedHacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/retardedHacker/subscriptions","organizations_url":"https://api.github.com/users/retardedHacker/orgs","repos_url":"https://api.github.com/users/retardedHacker/repos","events_url":"https://api.github.com/users/retardedHacker/events{/privacy}","received_events_url":"https://api.github.com/users/retardedHacker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-09T20:33:52Z","updated_at":"2016-10-10T06:00:14Z","closed_at":null,"body":"Lets say you have loaded data with relations and now wants to serialize / json your data\r\n````\r\n// get a collection of the post IDs we just loaded\r\n$posts = $manager->posts->getCollection($post_ids);\r\n\r\nprint_r($posts[0]); //will throw me huge pile of code that kills my browser. \r\n````\r\nSure I could build an array by accessing individual properties like $posts[0]->name... And so on,but that's not convenient."},"comment":{"url":"https://api.github.com/repos/auraphp/Aura.Marshal/issues/comments/252542002","html_url":"https://github.com/auraphp/Aura.Marshal/issues/27#issuecomment-252542002","issue_url":"https://api.github.com/repos/auraphp/Aura.Marshal/issues/27","id":252542002,"user":{"login":"harikt","id":120454,"avatar_url":"https://avatars.githubusercontent.com/u/120454?v=3","gravatar_id":"","url":"https://api.github.com/users/harikt","html_url":"https://github.com/harikt","followers_url":"https://api.github.com/users/harikt/followers","following_url":"https://api.github.com/users/harikt/following{/other_user}","gists_url":"https://api.github.com/users/harikt/gists{/gist_id}","starred_url":"https://api.github.com/users/harikt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harikt/subscriptions","organizations_url":"https://api.github.com/users/harikt/orgs","repos_url":"https://api.github.com/users/harikt/repos","events_url":"https://api.github.com/users/harikt/events{/privacy}","received_events_url":"https://api.github.com/users/harikt/received_events","type":"User","site_admin":false},"created_at":"2016-10-10T06:00:14Z","updated_at":"2016-10-10T06:00:14Z","body":"I think you could use http://php.net/iterator_to_array to get the array values. \r\n\r\nDoes that help you ?"}}
{"actor":{"display_login":"harikt"}}