改进Query类的alias方法

This commit is contained in:
thinkphp
2016-11-01 18:17:37 +08:00
parent 12b9dad495
commit 1d30c47de3

View File

@@ -1189,6 +1189,9 @@ class Query
} else {
if (isset($this->options['table'])) {
$table = is_array($this->options['table']) ? key($this->options['table']) : $this->options['table'];
if (false !== strpos($table, '__')) {
$table = $this->parseSqlTable($table);
}
} else {
$table = $this->getTable();
}