sfValidatorChoice not working on multiple selection element

sfValidatorChoice is not working on multiple select element, my code\[code\]$this->form=new MyTestForm();$options_array=array("php","python","java");$widgetSchema["my_select"] =new sfWidgetFormChoice(array('choices' => $options_array,'multiple' => true,'expanded' => true )); $validatorSchema["my_select"] = new sfValidatorChoice(array("choices" =>array_keys($options_array)));\[/code\]Note: i have also tried using array_keys and by directly passing the array to sfValidatorChoice.when i submit, it gives me \[code\]Invalid\[/code\] error(when checked) and \[code\]Required\[/code\](when unchecked).is there any error in parameters or is bug?
 
Back
Top