Connection类getAttribute方法 改成 getConfig 增加setConfig方法 Model类类型转换支持格式定义

This commit is contained in:
thinkphp
2016-04-23 11:17:53 +08:00
parent 138dab1e9e
commit 2fb064cb37
5 changed files with 35 additions and 11 deletions

View File

@@ -336,7 +336,7 @@ class Query
}
}
} else {
$prefix = $this->connection->getAttribute('prefix');
$prefix = $this->connection->getConfig('prefix');
// 传入的表名为数组
if (is_array($join)) {
if (0 !== $key = key($join)) {