{"action":"created","issue":{"url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/2203","labels_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/2203/labels{/name}","comments_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/2203/comments","events_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/2203/events","html_url":"https://github.com/sonata-project/SonataAdminBundle/issues/2203","id":36470856,"number":2203,"title":"Fail to work if an admin class is related to an entity with a property named children","user":{"login":"mikeSimonson","id":907613,"avatar_url":"https://avatars.githubusercontent.com/u/907613?v=3","gravatar_id":"","url":"https://api.github.com/users/mikeSimonson","html_url":"https://github.com/mikeSimonson","followers_url":"https://api.github.com/users/mikeSimonson/followers","following_url":"https://api.github.com/users/mikeSimonson/following{/other_user}","gists_url":"https://api.github.com/users/mikeSimonson/gists{/gist_id}","starred_url":"https://api.github.com/users/mikeSimonson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikeSimonson/subscriptions","organizations_url":"https://api.github.com/users/mikeSimonson/orgs","repos_url":"https://api.github.com/users/mikeSimonson/repos","events_url":"https://api.github.com/users/mikeSimonson/events{/privacy}","received_events_url":"https://api.github.com/users/mikeSimonson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-06-25T11:35:06Z","updated_at":"2016-01-14T09:13:04Z","closed_at":null,"body":"I get an error when I try to list all the entites of a class that has a children property (boolean).\r\n\r\nThe relevant part of the code is as bellow.\r\n```php\r\n    /**\r\n     * @param DatagridMapper $datagridMapper\r\n     */\r\n    protected function configureDatagridFilters(DatagridMapper $datagridMapper)\r\n    {\r\n        $datagridMapper\r\n            ->add('id')\r\n            ->add('children')\r\n            ->add('youth')\r\n            ->add('adult')\r\n        ;\r\n    }\r\n```\r\n\r\nI get this error :\r\n```\r\nKey \"id\" in object with ArrayAccess of class \"Symfony\\Component\\Form\\FormView\" does not exist in SonataAdminBundle:CRUD:base_list.html.twig at line 203 .\r\n```\r\n\r\nI have no error if I map all the fields of the entity but that children one.\r\nI don't have any issue neither if I refactor it to childrens.\r\n\r\nI am betting there is a naming collision somewhere."},"comment":{"url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/comments/171581167","html_url":"https://github.com/sonata-project/SonataAdminBundle/issues/2203#issuecomment-171581167","issue_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/2203","id":171581167,"user":{"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},"created_at":"2016-01-14T09:13:04Z","updated_at":"2016-01-14T09:13:04Z","body":"Same Problem, i can keep this in my Entity:\r\n\r\n```php\r\n    /**\r\n     * @var int\r\n     *\r\n     * @ORM\\Column(name=\"children\", type=\"integer\", nullable=true)\r\n     *\r\n     * @Assert\\Type(type=\"integer\")\r\n     * @Assert\\Range(min=0, max=200)\r\n     */\r\n    private $children;\r\n```\r\n\r\nbut i have to remove all\r\n```php\r\n->add('children)\r\n```\r\nfrom my admin... :confused: "}}