{"action":"created","issue":{"url":"https://api.github.com/repos/PUGX/PUGXAutoCompleterBundle/issues/34","repository_url":"https://api.github.com/repos/PUGX/PUGXAutoCompleterBundle","labels_url":"https://api.github.com/repos/PUGX/PUGXAutoCompleterBundle/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/PUGX/PUGXAutoCompleterBundle/issues/34/comments","events_url":"https://api.github.com/repos/PUGX/PUGXAutoCompleterBundle/issues/34/events","html_url":"https://github.com/PUGX/PUGXAutoCompleterBundle/issues/34","id":140653067,"number":34,"title":"Error with Array Collection","user":{"login":"PauuloG","id":8963323,"avatar_url":"https://avatars.githubusercontent.com/u/8963323?v=3","gravatar_id":"","url":"https://api.github.com/users/PauuloG","html_url":"https://github.com/PauuloG","followers_url":"https://api.github.com/users/PauuloG/followers","following_url":"https://api.github.com/users/PauuloG/following{/other_user}","gists_url":"https://api.github.com/users/PauuloG/gists{/gist_id}","starred_url":"https://api.github.com/users/PauuloG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PauuloG/subscriptions","organizations_url":"https://api.github.com/users/PauuloG/orgs","repos_url":"https://api.github.com/users/PauuloG/repos","events_url":"https://api.github.com/users/PauuloG/events{/privacy}","received_events_url":"https://api.github.com/users/PauuloG/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-03-14T11:55:04Z","updated_at":"2016-03-15T13:52:28Z","closed_at":null,"body":"Hello,\r\n\r\nI'm encountering an error I am unable to understand. My form contains this line \r\n```\r\n->add('contacts', 'PUGX\\AutocompleterBundle\\Form\\Type\\AutocompleteType', array('class' => 'AppBundle:Client'))\r\n```\r\n\r\nAnd both controllers and routes are set as seen in documentation for search controllers (search and get). \r\n\r\nI receive this error when calling the route : \r\n````\r\nAttempted to call an undefined method named \"getId\" of class \"Doctrine\\Common\\Collections\\ArrayCollection\".\r\n```\r\n\r\nI don't really understand what's wrong."},"comment":{"url":"https://api.github.com/repos/PUGX/PUGXAutoCompleterBundle/issues/comments/196828206","html_url":"https://github.com/PUGX/PUGXAutoCompleterBundle/issues/34#issuecomment-196828206","issue_url":"https://api.github.com/repos/PUGX/PUGXAutoCompleterBundle/issues/34","id":196828206,"user":{"login":"PauuloG","id":8963323,"avatar_url":"https://avatars.githubusercontent.com/u/8963323?v=3","gravatar_id":"","url":"https://api.github.com/users/PauuloG","html_url":"https://github.com/PauuloG","followers_url":"https://api.github.com/users/PauuloG/followers","following_url":"https://api.github.com/users/PauuloG/following{/other_user}","gists_url":"https://api.github.com/users/PauuloG/gists{/gist_id}","starred_url":"https://api.github.com/users/PauuloG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PauuloG/subscriptions","organizations_url":"https://api.github.com/users/PauuloG/orgs","repos_url":"https://api.github.com/users/PauuloG/repos","events_url":"https://api.github.com/users/PauuloG/events{/privacy}","received_events_url":"https://api.github.com/users/PauuloG/received_events","type":"User","site_admin":false},"created_at":"2016-03-15T13:52:28Z","updated_at":"2016-03-15T13:52:28Z","body":"I have two routes called `api_autocomplete_clients` for the listClientAction and `api_autocomplete_client` for the getClientAction. Called in JS as such : \r\n\r\n```\r\n    var URL_listClients = Routing.generate('api_autocomplete_clients', {}, true),\r\n        URL_getClient = Routing.generate('api_autocomplete_client', {}, true);\r\n    $('#dossier').autocompleter({\r\n        url_list: URL_listClients,\r\n        url_get: URL_getClient\r\n    });\r\n```"}}