mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
改进Model类的getTableInfo方法 当用table方法指定多个表join操作的时候不获取字段信息
This commit is contained in:
@@ -1094,6 +1094,10 @@ class Model
|
||||
if (!$tableName) {
|
||||
$tableName = isset($this->options['table']) ? $this->options['table'] : $this->getTableName();
|
||||
}
|
||||
if (strpos($tableName, ',')) {
|
||||
// 多表不获取字段信息
|
||||
return false;
|
||||
}
|
||||
$guid = md5($tableName);
|
||||
$result = Cache::get($guid);
|
||||
if (!$result) {
|
||||
|
||||
Reference in New Issue
Block a user