protected function validateArray(array $values, $context)
    {
        foreach ($values as $key => $value) {
            $valid = $this->getValidationChain()
                ->validates($value, $context);
            if (!$valid) {
                $this->setInvalid($key);
            }
        }
    }
protected function validateArray(array $values, $context)
    {
        foreach ($values as $key => $value) {
            $valid = $this->getValidationChain()
                ->validates($value, $context);
            if (!$valid) {
                $this->setInvalid($key);
            }
        }
    }
protected function validateArray ( array $ values , $ context ) { foreach ( $ values as $ key => $ value ) { $ valid = $ this -> getValidationChain ( ) -> validates ( $ value , $ context ) ; if ( ! $ valid ) { $ this -> setInvalid ( $ key ) ; } } }
Validates input when is set to be multiple

@param array $values
@param array $context
Validates input when is set to be multiple