Symfony sfWidgetFormChoice always invalid with multiple choices (checkboxes)
I have a weird problem with checkbox validation. It's always invalid... I have read a lot about this problem, but I couldn't find the solution... (I use array_keys in validation) So, here is my code: class NetworkDevicesAndInterfacesForm extends sfForm { public function configure() { $optionsArr = array('one' => 'One','two' => 'Two'); $this->setWidgets(array( 'devices' => new sfWidgetFormChoice(array( 'expanded' => true, 'multiple' => true, 'choices' => $optionsArr), array('class' => 'checkbox')) )); $this->setValidators(array( 'devices' => new sfValidatorChoice(array( 'choices' => array_keys(