mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-02 05:02:48 +08:00
改进数据库驱动的getFields方法 支持指定别名的情况 修正model类一处错误
This commit is contained in:
@@ -396,7 +396,7 @@ class Model {
|
||||
$options['model'] = $this->name;
|
||||
|
||||
if(isset($options['table'])) {// 动态指定表名
|
||||
$fields = $this->db->getFields($this->options['table']);
|
||||
$fields = $this->db->getFields($options['table']);
|
||||
$fields = $fields?array_keys($fields):false;
|
||||
}else{
|
||||
$options['table'] = $this->getTableName();
|
||||
|
||||
Reference in New Issue
Block a user