完善Model类单元测试

This commit is contained in:
oldrind
2016-03-05 18:37:46 +08:00
parent 168616bab8
commit 7dfce7029d
2 changed files with 99 additions and 62 deletions

View File

@@ -1544,6 +1544,7 @@ class Model
}
$fields = array_keys($info);
$bind = $type = [];
foreach ($info as $key => $val) {
// 记录字段类型
$type[$key] = $val['type'];
@@ -1835,7 +1836,7 @@ class Model
if (!empty($args) && is_array($args)) {
$options = array_merge($options, $args);
}
} elseif (is_array($scope)) {
} else {
// 直接传入命名范围定义
$options = $scope;
}