{"action":"opened","issue":{"url":"https://api.github.com/repos/acelaya/doctrine-enum-type/issues/1","labels_url":"https://api.github.com/repos/acelaya/doctrine-enum-type/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/acelaya/doctrine-enum-type/issues/1/comments","events_url":"https://api.github.com/repos/acelaya/doctrine-enum-type/issues/1/events","html_url":"https://github.com/acelaya/doctrine-enum-type/issues/1","id":119226689,"number":1,"title":"Fails when value is null","user":{"login":"maxbrokman","id":5322152,"avatar_url":"https://avatars.githubusercontent.com/u/5322152?v=3","gravatar_id":"","url":"https://api.github.com/users/maxbrokman","html_url":"https://github.com/maxbrokman","followers_url":"https://api.github.com/users/maxbrokman/followers","following_url":"https://api.github.com/users/maxbrokman/following{/other_user}","gists_url":"https://api.github.com/users/maxbrokman/gists{/gist_id}","starred_url":"https://api.github.com/users/maxbrokman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxbrokman/subscriptions","organizations_url":"https://api.github.com/users/maxbrokman/orgs","repos_url":"https://api.github.com/users/maxbrokman/repos","events_url":"https://api.github.com/users/maxbrokman/events{/privacy}","received_events_url":"https://api.github.com/users/maxbrokman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-27T17:12:38Z","updated_at":"2015-11-27T17:12:38Z","closed_at":null,"body":"When the value of a property is null `convertToPhpValue` attempts to initialise the Enum with `null`. This fails (unless `null` is an allowed value).\r\n\r\nI suggest it should instead return `null` when the database value is `null`. Happy to send PR."}}