{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/15055","labels_url":"https://api.github.com/repos/symfony/symfony/issues/15055/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/15055/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/15055/events","html_url":"https://github.com/symfony/symfony/issues/15055","id":89912448,"number":15055,"title":"FormEvents::PRE_SUBMIT, the 'choices\" field of an entity type throws spl_object_hash() exception","user":{"login":"ZCJ","id":1475845,"avatar_url":"https://avatars.githubusercontent.com/u/1475845?v=3","gravatar_id":"","url":"https://api.github.com/users/ZCJ","html_url":"https://github.com/ZCJ","followers_url":"https://api.github.com/users/ZCJ/followers","following_url":"https://api.github.com/users/ZCJ/following{/other_user}","gists_url":"https://api.github.com/users/ZCJ/gists{/gist_id}","starred_url":"https://api.github.com/users/ZCJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZCJ/subscriptions","organizations_url":"https://api.github.com/users/ZCJ/orgs","repos_url":"https://api.github.com/users/ZCJ/repos","events_url":"https://api.github.com/users/ZCJ/events{/privacy}","received_events_url":"https://api.github.com/users/ZCJ/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/symfony/symfony/labels/Form","name":"Form","color":"DDDDDD"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-21T13:32:51Z","updated_at":"2015-06-22T14:24:43Z","closed_at":null,"body":"I have an entity which is fetched inside a form Subscriber. When I use this entity as 'choices', I get the exception. When using query builder and a repo call, it works. That only happens when I upgrade from Symfony 2.6.9 to Symfony 2.7.1"},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/114127354","html_url":"https://github.com/symfony/symfony/issues/15055#issuecomment-114127354","issue_url":"https://api.github.com/repos/symfony/symfony/issues/15055","id":114127354,"user":{"login":"webmozart","id":176399,"avatar_url":"https://avatars.githubusercontent.com/u/176399?v=3","gravatar_id":"","url":"https://api.github.com/users/webmozart","html_url":"https://github.com/webmozart","followers_url":"https://api.github.com/users/webmozart/followers","following_url":"https://api.github.com/users/webmozart/following{/other_user}","gists_url":"https://api.github.com/users/webmozart/gists{/gist_id}","starred_url":"https://api.github.com/users/webmozart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webmozart/subscriptions","organizations_url":"https://api.github.com/users/webmozart/orgs","repos_url":"https://api.github.com/users/webmozart/repos","events_url":"https://api.github.com/users/webmozart/events{/privacy}","received_events_url":"https://api.github.com/users/webmozart/received_events","type":"User","site_admin":false},"created_at":"2015-06-22T14:24:43Z","updated_at":"2015-06-22T14:24:43Z","body":"Hi @ZCJ, thank you for taking the time to report this issue! :) Could you please upload a fork of symfony-standard that reproduces this problem?"}}