改进数据表字段缓存生成 支持读取模块的模型生成

This commit is contained in:
thinkphp
2016-09-19 15:28:31 +08:00
parent 85204dfaff
commit fb52e8a421
2 changed files with 61 additions and 14 deletions

View File

@@ -1341,6 +1341,9 @@ class Query
}
list($guid) = explode(' ', $tableName);
if (!strpos($guid, '.')) {
$guid = $this->getConfig('database') . '.' . $guid;
}
if (!isset(self::$info[$guid])) {
// 读取缓存
if (is_file(RUNTIME_PATH . 'schema/' . $guid . '.php')) {