protected function internalValidateValue(&$value)
{
$result = parent::validateValue($value);
if (empty($result)) {
if ($this->allowNamespace) {
$result = $this->validateNsSeparator($value, 0, $this->leadingNamespaceSeparator);
} else {
if (!$this->allowNamespace && !$model->hasErrors()) {
if (strpos($model->{$attribute}, '\\') !== FALSE) {
$result = ['Namespace may not be specified', null];
}
}
}
}
return $result;
}