{"action":"opened","issue":{"url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/issues/321","repository_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors","labels_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/issues/321/labels{/name}","comments_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/issues/321/comments","events_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/issues/321/events","html_url":"https://github.com/KnpLabs/DoctrineBehaviors/issues/321","id":174082447,"number":321,"title":"use __call","user":{"login":"jokari4242","id":1194744,"avatar_url":"https://avatars.githubusercontent.com/u/1194744?v=3","gravatar_id":"","url":"https://api.github.com/users/jokari4242","html_url":"https://github.com/jokari4242","followers_url":"https://api.github.com/users/jokari4242/followers","following_url":"https://api.github.com/users/jokari4242/following{/other_user}","gists_url":"https://api.github.com/users/jokari4242/gists{/gist_id}","starred_url":"https://api.github.com/users/jokari4242/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jokari4242/subscriptions","organizations_url":"https://api.github.com/users/jokari4242/orgs","repos_url":"https://api.github.com/users/jokari4242/repos","events_url":"https://api.github.com/users/jokari4242/events{/privacy}","received_events_url":"https://api.github.com/users/jokari4242/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-30T17:49:39Z","updated_at":"2016-08-30T17:49:39Z","closed_at":null,"body":"Hi, \r\n\r\nI'm trying to call the create a form with a categie translate, like in doc. But, when my form is submit, i have this error:\r\n\r\n```\r\nNeither the property \"name\" nor one of the methods \"getName()\", \"name()\", \"isName()\", \"hasName()\", \"__get()\" exist and have public access in class \"AM\\AppBundle\\Entity\\Category\".\r\n```\r\n\r\nI have try to do this in my class Category but it's not beeter. \r\n\r\n```\r\n    /**\r\n     * This function makes it possible to call translated properties without having to know if the enitity is translated.\r\n     *\r\n     * @param type $method\r\n     * @param type $arguments\r\n     * @return type\r\n     */\r\n    public function __call($method, $args)\r\n    {\r\n        if (!method_exists(self::getTranslationEntityClass(), $method)) {\r\n            $method = 'get'. ucfirst($method);\r\n        }\r\n\r\n        return $this->proxyCurrentLocaleTranslation($method, $args);\r\n    }\r\n```\r\n\r\nIf someone can help me it really apprecied!\r\n\r\nThanks"}}
{"actor":{"display_login":"jokari4242"}}