Commit 6c2cf9a2 by Qiang Xue

Removed redundant code.

parent 7a587f62
......@@ -160,10 +160,8 @@ class Model extends Component implements \IteratorAggregate, \ArrayAccess
{
$attributes = array();
foreach ($this->getActiveValidators() as $validator) {
if ($validator->isActive('default')) {
foreach ($validator->attributes as $name) {
$attributes[$name] = true;
}
foreach ($validator->attributes as $name) {
$attributes[$name] = true;
}
}
return array(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment