Merge branch 'master' of github.com:yiisoft/yii2

This commit is contained in:
Qiang Xue
2013-07-03 21:07:44 -04:00
5 changed files with 220 additions and 26 deletions

View File

@@ -694,7 +694,7 @@ class Model extends Component implements \IteratorAggregate, \ArrayAccess
$success = true;
}
} elseif (isset($data[$scope][$i])) {
$model->setAttributes($data[$scope[$i]]);
$model->setAttributes($data[$scope][$i]);
$success = true;
}
}