Open salehsed opened 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" ); }
'''
Expected argument of type "array or \Closure", "NULL" given 500 Internal Server Error - UnexpectedTypeException
any update ?
Can you please provide a backtrace from the exception report?
I have the following model but the admin throws exception
''' /* * @ODM\String * @Assert\Choice(callback = "getChoiceRoles") / protected $role;
'''
Error:
'''
Expected argument of type "array or \Closure", "NULL" given 500 Internal Server Error - UnexpectedTypeException
'''