whiteoctober / WhiteOctoberAdminBundle

A different take on an AdminBundle for Symfony2
MIT License
79 stars 14 forks source link

Choisces are not working #42

Open salehsed opened 13 years ago

salehsed commented 13 years ago

I have the following model but the admin throws exception

''' /* * @ODM\String * @Assert\Choice(callback = "getChoiceRoles") / protected $role;

public static function getChoiceRoles()
{
return array( "choice1", "choice2" );
}

'''

Error:

'''

Expected argument of type "array or \Closure", "NULL" given 500 Internal Server Error - UnexpectedTypeException

'''

salehsed commented 13 years ago

any update ?

richsage commented 13 years ago

Can you please provide a backtrace from the exception report?