mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 15:42:48 +08:00
改进Query类的alias方法
This commit is contained in:
@@ -1189,6 +1189,9 @@ class Query
|
|||||||
} else {
|
} else {
|
||||||
if (isset($this->options['table'])) {
|
if (isset($this->options['table'])) {
|
||||||
$table = is_array($this->options['table']) ? key($this->options['table']) : $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 {
|
} else {
|
||||||
$table = $this->getTable();
|
$table = $this->getTable();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user