修正traits\model

This commit is contained in:
thinkphp
2016-01-31 20:55:52 +08:00
parent 1e409b7ddc
commit c8ff8b9f7a
3 changed files with 3 additions and 3 deletions

View File

@@ -91,7 +91,7 @@ trait View
{
if (false !== $pos = array_search('*', $fields)) {
// 定义所有字段
$fields = array_merge($fields, M($name)->getDbFields());
$fields = array_merge($fields, \think\Loader::model($name)->getFields());
unset($fields[$pos]);
}
return $fields;