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