{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/17d5f11da7259f493faf0285a89fa29b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"17d5f11da7259f493faf0285a89fa29b","url":"https://api.github.com/users/salehsed","login":"salehsed","id":887325},"updated_at":"2011-10-30T11:00:05Z","labels":[],"assignee":null,"comments":2,"closed_at":null,"url":"https://api.github.com/repos/whiteoctober/WhiteOctoberAdminBundle/issues/42","body":"I have the following model but the admin throws exception\r\n\r\n'''\r\n    /**\r\n     * @ODM\\String\r\n     * @Assert\\Choice(callback = \"getChoiceRoles\")\r\n     */\r\n    protected $role;\r\n\r\n    \r\n    public static function getChoiceRoles()\r\n    {\r\n\treturn array( \"choice1\", \"choice2\" );\r\n    }\r\n'''\r\n\r\n### Error:\r\n'''\r\n\r\n Expected argument of type \"array or \\Closure\", \"NULL\" given\r\n500 Internal Server Error - UnexpectedTypeException \r\n\r\n'''\r\n","html_url":"https://github.com/whiteoctober/WhiteOctoberAdminBundle/issues/42","title":"Choisces are not working ","number":42,"id":1778759,"created_at":"2011-09-29T18:12:46Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/f0def25f69a114e8f9b7e79eca23005a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"f0def25f69a114e8f9b7e79eca23005a","url":"https://api.github.com/users/richsage","login":"richsage","id":231551},"updated_at":"2011-10-30T11:00:05Z","url":"https://api.github.com/repos/whiteoctober/WhiteOctoberAdminBundle/issues/comments/2569106","body":"Can you please provide a backtrace from the exception report?","id":2569106,"created_at":"2011-10-30T11:00:05Z"}}