mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
修复关联查询时whereTime找不到关联表前缀的BUG
Signed-off-by: Karson <karsonzhang@163.com>
This commit is contained in:
@@ -541,12 +541,18 @@ abstract class Builder
|
||||
* @param array $options 查询条件
|
||||
* @return string
|
||||
*/
|
||||
protected function parseJoin($join, $options = [])
|
||||
protected function parseJoin($join, & $options = [])
|
||||
{
|
||||
$joinStr = '';
|
||||
if (!empty($join)) {
|
||||
foreach ($join as $item) {
|
||||
list($table, $type, $on) = $item;
|
||||
if (is_array($table)) {
|
||||
$origin = key($table);
|
||||
if ($origin && $origin != $table[$origin]) {
|
||||
$options['alias'][$origin] = $table[$origin];
|
||||
}
|
||||
}
|
||||
$condition = [];
|
||||
foreach ((array) $on as $val) {
|
||||
if ($val instanceof Expression) {
|
||||
|
||||
Reference in New Issue
Block a user