{"action":"closed","number":3513,"pull_request":{"url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/pulls/3513","id":54791968,"html_url":"https://github.com/sonata-project/SonataAdminBundle/pull/3513","diff_url":"https://github.com/sonata-project/SonataAdminBundle/pull/3513.diff","patch_url":"https://github.com/sonata-project/SonataAdminBundle/pull/3513.patch","issue_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/3513","number":3513,"state":"closed","locked":false,"title":"Add methods DatagridMapper::getDatagrid and ListMapper::getList","user":{"login":"hason","id":288535,"avatar_url":"https://avatars.githubusercontent.com/u/288535?v=3","gravatar_id":"","url":"https://api.github.com/users/hason","html_url":"https://github.com/hason","followers_url":"https://api.github.com/users/hason/followers","following_url":"https://api.github.com/users/hason/following{/other_user}","gists_url":"https://api.github.com/users/hason/gists{/gist_id}","starred_url":"https://api.github.com/users/hason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hason/subscriptions","organizations_url":"https://api.github.com/users/hason/orgs","repos_url":"https://api.github.com/users/hason/repos","events_url":"https://api.github.com/users/hason/events{/privacy}","received_events_url":"https://api.github.com/users/hason/received_events","type":"User","site_admin":false},"body":"I want to reorder columns in admin extension, but a mapper doesn't have a method to obtain columns from list.\r\n\r\n```php\r\n    public function configureListFields(ListMapper $listMapper)\r\n    {\r\n        $list = $listMapper->getList();\r\n        $keys = array_keys($list->getElements());\r\n        // ...\r\n        $listMapper->reorder($keys);\r\n    }\r\n```","created_at":"2015-12-30T10:55:41Z","updated_at":"2016-05-08T13:37:03Z","closed_at":"2016-05-08T13:37:03Z","merged_at":null,"merge_commit_sha":"80bafead241b1a5d78af8b067575d51be4360204","assignee":{"login":"OskarStark","id":995707,"avatar_url":"https://avatars.githubusercontent.com/u/995707?v=3","gravatar_id":"","url":"https://api.github.com/users/OskarStark","html_url":"https://github.com/OskarStark","followers_url":"https://api.github.com/users/OskarStark/followers","following_url":"https://api.github.com/users/OskarStark/following{/other_user}","gists_url":"https://api.github.com/users/OskarStark/gists{/gist_id}","starred_url":"https://api.github.com/users/OskarStark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OskarStark/subscriptions","organizations_url":"https://api.github.com/users/OskarStark/orgs","repos_url":"https://api.github.com/users/OskarStark/repos","events_url":"https://api.github.com/users/OskarStark/events{/privacy}","received_events_url":"https://api.github.com/users/OskarStark/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/pulls/3513/commits","review_comments_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/pulls/3513/comments","review_comment_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/3513/comments","statuses_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/statuses/f421bda74e74eea00159cbe1512f352cc6fb358c","head":{"label":"hason:listmapper","ref":"listmapper","sha":"f421bda74e74eea00159cbe1512f352cc6fb358c","user":{"login":"hason","id":288535,"avatar_url":"https://avatars.githubusercontent.com/u/288535?v=3","gravatar_id":"","url":"https://api.github.com/users/hason","html_url":"https://github.com/hason","followers_url":"https://api.github.com/users/hason/followers","following_url":"https://api.github.com/users/hason/following{/other_user}","gists_url":"https://api.github.com/users/hason/gists{/gist_id}","starred_url":"https://api.github.com/users/hason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hason/subscriptions","organizations_url":"https://api.github.com/users/hason/orgs","repos_url":"https://api.github.com/users/hason/repos","events_url":"https://api.github.com/users/hason/events{/privacy}","received_events_url":"https://api.github.com/users/hason/received_events","type":"User","site_admin":false},"repo":{"id":3658569,"name":"SonataAdminBundle","full_name":"hason/SonataAdminBundle","owner":{"login":"hason","id":288535,"avatar_url":"https://avatars.githubusercontent.com/u/288535?v=3","gravatar_id":"","url":"https://api.github.com/users/hason","html_url":"https://github.com/hason","followers_url":"https://api.github.com/users/hason/followers","following_url":"https://api.github.com/users/hason/following{/other_user}","gists_url":"https://api.github.com/users/hason/gists{/gist_id}","starred_url":"https://api.github.com/users/hason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hason/subscriptions","organizations_url":"https://api.github.com/users/hason/orgs","repos_url":"https://api.github.com/users/hason/repos","events_url":"https://api.github.com/users/hason/events{/privacy}","received_events_url":"https://api.github.com/users/hason/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hason/SonataAdminBundle","description":"AdminBundle - The missing Symfony2 Admin Generator","fork":true,"url":"https://api.github.com/repos/hason/SonataAdminBundle","forks_url":"https://api.github.com/repos/hason/SonataAdminBundle/forks","keys_url":"https://api.github.com/repos/hason/SonataAdminBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hason/SonataAdminBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hason/SonataAdminBundle/teams","hooks_url":"https://api.github.com/repos/hason/SonataAdminBundle/hooks","issue_events_url":"https://api.github.com/repos/hason/SonataAdminBundle/issues/events{/number}","events_url":"https://api.github.com/repos/hason/SonataAdminBundle/events","assignees_url":"https://api.github.com/repos/hason/SonataAdminBundle/assignees{/user}","branches_url":"https://api.github.com/repos/hason/SonataAdminBundle/branches{/branch}","tags_url":"https://api.github.com/repos/hason/SonataAdminBundle/tags","blobs_url":"https://api.github.com/repos/hason/SonataAdminBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hason/SonataAdminBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hason/SonataAdminBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/hason/SonataAdminBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hason/SonataAdminBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/hason/SonataAdminBundle/languages","stargazers_url":"https://api.github.com/repos/hason/SonataAdminBundle/stargazers","contributors_url":"https://api.github.com/repos/hason/SonataAdminBundle/contributors","subscribers_url":"https://api.github.com/repos/hason/SonataAdminBundle/subscribers","subscription_url":"https://api.github.com/repos/hason/SonataAdminBundle/subscription","commits_url":"https://api.github.com/repos/hason/SonataAdminBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/hason/SonataAdminBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/hason/SonataAdminBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/hason/SonataAdminBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/hason/SonataAdminBundle/contents/{+path}","compare_url":"https://api.github.com/repos/hason/SonataAdminBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hason/SonataAdminBundle/merges","archive_url":"https://api.github.com/repos/hason/SonataAdminBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hason/SonataAdminBundle/downloads","issues_url":"https://api.github.com/repos/hason/SonataAdminBundle/issues{/number}","pulls_url":"https://api.github.com/repos/hason/SonataAdminBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/hason/SonataAdminBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/hason/SonataAdminBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hason/SonataAdminBundle/labels{/name}","releases_url":"https://api.github.com/repos/hason/SonataAdminBundle/releases{/id}","deployments_url":"https://api.github.com/repos/hason/SonataAdminBundle/deployments","created_at":"2012-03-08T09:33:16Z","updated_at":"2015-04-08T13:15:22Z","pushed_at":"2016-04-15T21:18:20Z","git_url":"git://github.com/hason/SonataAdminBundle.git","ssh_url":"git@github.com:hason/SonataAdminBundle.git","clone_url":"https://github.com/hason/SonataAdminBundle.git","svn_url":"https://github.com/hason/SonataAdminBundle","homepage":"http://sonata-project.org/bundles/admin","size":18377,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"sonata-project:master","ref":"master","sha":"18c495e1f2febb8ac46065d0e4c524c3aeea99df","user":{"login":"sonata-project","id":404157,"avatar_url":"https://avatars.githubusercontent.com/u/404157?v=3","gravatar_id":"","url":"https://api.github.com/users/sonata-project","html_url":"https://github.com/sonata-project","followers_url":"https://api.github.com/users/sonata-project/followers","following_url":"https://api.github.com/users/sonata-project/following{/other_user}","gists_url":"https://api.github.com/users/sonata-project/gists{/gist_id}","starred_url":"https://api.github.com/users/sonata-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonata-project/subscriptions","organizations_url":"https://api.github.com/users/sonata-project/orgs","repos_url":"https://api.github.com/users/sonata-project/repos","events_url":"https://api.github.com/users/sonata-project/events{/privacy}","received_events_url":"https://api.github.com/users/sonata-project/received_events","type":"Organization","site_admin":false},"repo":{"id":1095228,"name":"SonataAdminBundle","full_name":"sonata-project/SonataAdminBundle","owner":{"login":"sonata-project","id":404157,"avatar_url":"https://avatars.githubusercontent.com/u/404157?v=3","gravatar_id":"","url":"https://api.github.com/users/sonata-project","html_url":"https://github.com/sonata-project","followers_url":"https://api.github.com/users/sonata-project/followers","following_url":"https://api.github.com/users/sonata-project/following{/other_user}","gists_url":"https://api.github.com/users/sonata-project/gists{/gist_id}","starred_url":"https://api.github.com/users/sonata-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonata-project/subscriptions","organizations_url":"https://api.github.com/users/sonata-project/orgs","repos_url":"https://api.github.com/users/sonata-project/repos","events_url":"https://api.github.com/users/sonata-project/events{/privacy}","received_events_url":"https://api.github.com/users/sonata-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sonata-project/SonataAdminBundle","description":"AdminBundle - The missing Symfony2 Admin Generator","fork":false,"url":"https://api.github.com/repos/sonata-project/SonataAdminBundle","forks_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/forks","keys_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/teams","hooks_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/hooks","issue_events_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/events{/number}","events_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/events","assignees_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/assignees{/user}","branches_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/branches{/branch}","tags_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/tags","blobs_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/languages","stargazers_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/stargazers","contributors_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/contributors","subscribers_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/subscribers","subscription_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/subscription","commits_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/contents/{+path}","compare_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/merges","archive_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/downloads","issues_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues{/number}","pulls_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/labels{/name}","releases_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/releases{/id}","deployments_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/deployments","created_at":"2010-11-19T17:08:52Z","updated_at":"2016-05-06T04:49:21Z","pushed_at":"2016-05-08T13:17:59Z","git_url":"git://github.com/sonata-project/SonataAdminBundle.git","ssh_url":"git@github.com:sonata-project/SonataAdminBundle.git","clone_url":"https://github.com/sonata-project/SonataAdminBundle.git","svn_url":"https://github.com/sonata-project/SonataAdminBundle","homepage":"http://sonata-project.org/bundles/admin","size":21847,"stargazers_count":1371,"watchers_count":1371,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":972,"mirror_url":null,"open_issues_count":412,"forks":972,"open_issues":412,"watchers":1371,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sonata-project/SonataAdminBundle/pulls/3513"},"html":{"href":"https://github.com/sonata-project/SonataAdminBundle/pull/3513"},"issue":{"href":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/3513"},"comments":{"href":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/3513/comments"},"review_comments":{"href":"https://api.github.com/repos/sonata-project/SonataAdminBundle/pulls/3513/comments"},"review_comment":{"href":"https://api.github.com/repos/sonata-project/SonataAdminBundle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sonata-project/SonataAdminBundle/pulls/3513/commits"},"statuses":{"href":"https://api.github.com/repos/sonata-project/SonataAdminBundle/statuses/f421bda74e74eea00159cbe1512f352cc6fb358c"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":6,"review_comments":0,"commits":1,"additions":16,"deletions":0,"changed_files":2}}