function setValidator($options, $messages = array()) { //Why? This makes validation to fail!! if (!$this->_checked && isset($options['required']) && $options['required']) { if (!isset($options['null_values'])) { //$options['null_values'] = array($this->_value); } else { //$options['null_values'][] = $this->_value; } } parent::setValidator($options, $messages); }