{"action":"created","issue":{"url":"https://api.github.com/repos/yethee/BiplaneEnumBundle/issues/27","repository_url":"https://api.github.com/repos/yethee/BiplaneEnumBundle","labels_url":"https://api.github.com/repos/yethee/BiplaneEnumBundle/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/yethee/BiplaneEnumBundle/issues/27/comments","events_url":"https://api.github.com/repos/yethee/BiplaneEnumBundle/issues/27/events","html_url":"https://github.com/yethee/BiplaneEnumBundle/issues/27","id":138273614,"number":27,"title":"FlaggedEnum broken in Symfony 2.8.3","user":{"login":"vpetrovych","id":576364,"avatar_url":"https://avatars.githubusercontent.com/u/576364?v=3","gravatar_id":"","url":"https://api.github.com/users/vpetrovych","html_url":"https://github.com/vpetrovych","followers_url":"https://api.github.com/users/vpetrovych/followers","following_url":"https://api.github.com/users/vpetrovych/following{/other_user}","gists_url":"https://api.github.com/users/vpetrovych/gists{/gist_id}","starred_url":"https://api.github.com/users/vpetrovych/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vpetrovych/subscriptions","organizations_url":"https://api.github.com/users/vpetrovych/orgs","repos_url":"https://api.github.com/users/vpetrovych/repos","events_url":"https://api.github.com/users/vpetrovych/events{/privacy}","received_events_url":"https://api.github.com/users/vpetrovych/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-03-03T19:25:25Z","updated_at":"2016-03-03T22:08:36Z","closed_at":null,"body":"Ever since upgrade to Symfony 2.8.3, I get the following error on a page that displays form with FlaggedEnum:\r\nExpected argument of type \"AppBundle\\Enum\\InstanceEnum\", \"string\" given\r\n\r\nStacktrace below:\r\n```\r\n[1] Symfony\\Component\\Form\\Exception\\UnexpectedTypeException: Expected argument of type \"AppBundle\\Enum\\InstanceEnum\", \"string\" given\r\n    at n/a\r\n        in /vagrant/vendor/yethee/enum-bundle/Form/DataTransformer/EnumToValueTransformer.php line 63\r\n\r\n    at Biplane\\EnumBundle\\Form\\DataTransformer\\EnumToValueTransformer->transform('')\r\n        in /vagrant/vendor/symfony/symfony/src/Symfony/Component/Form/Form.php line 1087\r\n\r\n    at Symfony\\Component\\Form\\Form->modelToNorm('')\r\n        in /vagrant/vendor/symfony/symfony/src/Symfony/Component/Form/Form.php line 352\r\n\r\n    at Symfony\\Component\\Form\\Form->setData('')\r\n        in /vagrant/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/DataMapper/PropertyPathMapper.php line 57\r\n\r\n    at Symfony\\Component\\Form\\Extension\\Core\\DataMapper\\PropertyPathMapper->mapDataToForms(object(Instance), object(RecursiveIteratorIterator))\r\n        in /vagrant/vendor/symfony/symfony/src/Symfony/Component/Form/Form.php line 386\r\n\r\n    at Symfony\\Component\\Form\\Form->setData(object(Instance))\r\n        in /vagrant/vendor/symfony/symfony/src/Symfony/Component/Form/Form.php line 478\r\n\r\n    at Symfony\\Component\\Form\\Form->initialize()\r\n        in /vagrant/vendor/symfony/symfony/src/Symfony/Component/Form/FormBuilder.php line 226\r\n\r\n    at Symfony\\Component\\Form\\FormBuilder->getForm()\r\n        in /vagrant/vendor/symfony/symfony/src/Symfony/Component/Form/FormFactory.php line 40\r\n\r\n    at Symfony\\Component\\Form\\FormFactory->create('AppBundle\\Form\\Type\\InstanceType', object(Instance), array())\r\n        in /vagrant/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php line 282\r\n\r\n    at Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller->createForm('AppBundle\\Form\\Type\\InstanceType', object(Instance))\r\n        in /vagrant/src/AppBundle/Controller/DashboardController.php line 66\r\n\r\n    at AppBundle\\Controller\\DashboardController->instanceAction(object(Request))\r\n        in  line \r\n\r\n    at call_user_func_array(array(object(DashboardController), 'instanceAction'), array(object(Request)))\r\n        in /vagrant/app/bootstrap.php.cache line 3210\r\n\r\n    at Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw(object(Request), '1')\r\n        in /vagrant/app/bootstrap.php.cache line 3172\r\n\r\n    at Symfony\\Component\\HttpKernel\\HttpKernel->handle(object(Request), '1', true)\r\n        in /vagrant/app/bootstrap.php.cache line 3323\r\n\r\n    at Symfony\\Component\\HttpKernel\\DependencyInjection\\ContainerAwareHttpKernel->handle(object(Request), '1', true)\r\n        in /vagrant/app/bootstrap.php.cache line 2511\r\n\r\n    at Symfony\\Component\\HttpKernel\\Kernel->handle(object(Request))\r\n        in /vagrant/web/app.php line 40\r\n```"},"comment":{"url":"https://api.github.com/repos/yethee/BiplaneEnumBundle/issues/comments/191988585","html_url":"https://github.com/yethee/BiplaneEnumBundle/issues/27#issuecomment-191988585","issue_url":"https://api.github.com/repos/yethee/BiplaneEnumBundle/issues/27","id":191988585,"user":{"login":"yethee","id":559488,"avatar_url":"https://avatars.githubusercontent.com/u/559488?v=3","gravatar_id":"","url":"https://api.github.com/users/yethee","html_url":"https://github.com/yethee","followers_url":"https://api.github.com/users/yethee/followers","following_url":"https://api.github.com/users/yethee/following{/other_user}","gists_url":"https://api.github.com/users/yethee/gists{/gist_id}","starred_url":"https://api.github.com/users/yethee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yethee/subscriptions","organizations_url":"https://api.github.com/users/yethee/orgs","repos_url":"https://api.github.com/users/yethee/repos","events_url":"https://api.github.com/users/yethee/events{/privacy}","received_events_url":"https://api.github.com/users/yethee/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T22:08:36Z","updated_at":"2016-03-03T22:08:36Z","body":"I implemented hotfix to support the latest versions of Symfony.\r\nCan you grab changes from the master branch and check in your project?"}}