/** * Is the value provided valid? * * Autoregisters InArray validator if necessary. * * @param string $value * @param mixed $context * @return bool */ public function isValid($value, $context = null) { if ($this->registerInArrayValidator()) { if (!$this->getValidator('InArray')) { $options = $this->getMultiOptions(); $this->addValidator('InArray', true, array(array_keys($options))); } } return parent::isValid($value, $context); }
public function isValid($value, $context = null) { /* $storeInfo = $this->getStoreInfo(); if (!empty($storeInfo)) { $this->setRegisterInArrayValidator(false); } */ return parent::isValid($value, $context); }