|
|
@ -160,12 +160,10 @@ class Model extends Component implements \IteratorAggregate, \ArrayAccess |
|
|
|
{ |
|
|
|
{ |
|
|
|
$attributes = array(); |
|
|
|
$attributes = array(); |
|
|
|
foreach ($this->getActiveValidators() as $validator) { |
|
|
|
foreach ($this->getActiveValidators() as $validator) { |
|
|
|
if ($validator->isActive('default')) { |
|
|
|
|
|
|
|
foreach ($validator->attributes as $name) { |
|
|
|
foreach ($validator->attributes as $name) { |
|
|
|
$attributes[$name] = true; |
|
|
|
$attributes[$name] = true; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return array( |
|
|
|
return array( |
|
|
|
'default' => array_keys($attributes), |
|
|
|
'default' => array_keys($attributes), |
|
|
|
); |
|
|
|
); |
|
|
|