改进join自关联查询

This commit is contained in:
thinkphp
2018-01-28 22:44:25 +08:00
parent b72caee28b
commit 34875308ae
2 changed files with 3 additions and 14 deletions

View File

@@ -207,9 +207,6 @@ abstract class Builder
$item = [];
foreach ((array) $tables as $key => $table) {
if (!is_numeric($key)) {
if (strpos($key, '@think')) {
$key = strstr($key, '@think', true);
}
$key = $this->parseSqlTable($key);
$item[] = $this->parseKey($key) . ' ' . (isset($options['alias'][$table]) ? $this->parseKey($options['alias'][$table]) : $this->parseKey($table));
} else {