{"action":"created","issue":{"url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/1605","repository_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle","labels_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/1605/labels{/name}","comments_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/1605/comments","events_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/1605/events","html_url":"https://github.com/sonata-project/SonataAdminBundle/issues/1605","id":18871219,"number":1605,"title":"array_combine() error","user":{"login":"poneymagique","id":1921502,"avatar_url":"https://avatars.githubusercontent.com/u/1921502?v=3","gravatar_id":"","url":"https://api.github.com/users/poneymagique","html_url":"https://github.com/poneymagique","followers_url":"https://api.github.com/users/poneymagique/followers","following_url":"https://api.github.com/users/poneymagique/following{/other_user}","gists_url":"https://api.github.com/users/poneymagique/gists{/gist_id}","starred_url":"https://api.github.com/users/poneymagique/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poneymagique/subscriptions","organizations_url":"https://api.github.com/users/poneymagique/orgs","repos_url":"https://api.github.com/users/poneymagique/repos","events_url":"https://api.github.com/users/poneymagique/events{/privacy}","received_events_url":"https://api.github.com/users/poneymagique/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2013-09-02T15:51:58Z","updated_at":"2016-04-15T17:20:25Z","closed_at":"2016-04-15T17:20:25Z","body":"Hello i have this exception when i try ad many to many\r\n\r\nAn exception has been thrown during the rendering of a template (\"Warning: array_combine() [<a href='function.array-combine'>function.array-combine</a>]: Both parameters should have an equal number of elements in D:\\wampserver\\www\\mumart_artsper\\vendor\\sonata-project\\doctrine-orm-admin-bundle\\Sonata\\DoctrineORMAdminBundle\\Model\\ModelManager.php line 179\") in \"SonataAdminBundle:CRUD:edit.html.twig\"\r\n\r\nHere is my code\r\n\r\n->add('galerieAdresses', 'sonata_type_model_list', array(\r\n                'by_reference' => false,\r\n                'required' => false\r\n            ), array(\r\n                'edit' => 'inline',\r\n                'inline' => 'table',\r\n                'sortable'  => 'position',\r\n            ))\r\n\r\n\r\n-----\r\nin galerieadresses:\r\n\r\n table: galerie_adresses\r\n    id:\r\n        galerie:\r\n          associationKey: true\r\n        adresse:\r\n          associationKey: true\r\n\r\n-----\r\n\r\nin galerie:\r\n  galerieAdresses:\r\n        targetEntity: GalerieAdresses\r\n        mappedBy: galerie\r\n\r\n---\r\nin adresse:\r\n\r\n oneToMany:\r\n      galerieAdresses:\r\n        targetEntity: GalerieAdresses\r\n        mappedBy: adresse\r\n\r\n\r\nI really dont find how to solve it\r\n"},"comment":{"url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/comments/210552983","html_url":"https://github.com/sonata-project/SonataAdminBundle/issues/1605#issuecomment-210552983","issue_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/1605","id":210552983,"user":{"login":"core23","id":3440437,"avatar_url":"https://avatars.githubusercontent.com/u/3440437?v=3","gravatar_id":"","url":"https://api.github.com/users/core23","html_url":"https://github.com/core23","followers_url":"https://api.github.com/users/core23/followers","following_url":"https://api.github.com/users/core23/following{/other_user}","gists_url":"https://api.github.com/users/core23/gists{/gist_id}","starred_url":"https://api.github.com/users/core23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/core23/subscriptions","organizations_url":"https://api.github.com/users/core23/orgs","repos_url":"https://api.github.com/users/core23/repos","events_url":"https://api.github.com/users/core23/events{/privacy}","received_events_url":"https://api.github.com/users/core23/received_events","type":"User","site_admin":false},"created_at":"2016-04-15T17:20:25Z","updated_at":"2016-04-15T17:20:25Z","body":"This issue is very old should be fixed in the latest master version.\r\n\r\nIf this is still present, feel free to reopen this issue @poneymagique "}}