mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02:48 +08:00
改进Query类的join方法
This commit is contained in:
@@ -677,7 +677,10 @@ class Query
|
|||||||
$this->alias($table);
|
$this->alias($table);
|
||||||
} elseif (strpos($join, ' ') && !strpos($join, ')')) {
|
} elseif (strpos($join, ' ') && !strpos($join, ')')) {
|
||||||
list($table, $alias) = explode(' ', $join);
|
list($table, $alias) = explode(' ', $join);
|
||||||
$table = [$table => $alias];
|
if (false === strpos($table, '.') && 0 !== strpos($table, $prefix) && 0 !== strpos($join, '__')) {
|
||||||
|
$table = $this->getTable($table);
|
||||||
|
}
|
||||||
|
$table = [$table => $alias];
|
||||||
$this->alias($table);
|
$this->alias($table);
|
||||||
} else {
|
} else {
|
||||||
$table = $join;
|
$table = $join;
|
||||||
|
|||||||
Reference in New Issue
Block a user