修正Query类的with方法

This commit is contained in:
thinkphp
2016-06-12 16:51:49 +08:00
parent b10635e22e
commit af1bc0429d

View File

@@ -1416,8 +1416,8 @@ class Query
$field = $this->options['with_field'];
unset($this->options['with_field']);
}
$this->field($field, false, $joinTable, $joinAlias, $joinName . '__');
}
$this->field($field, false, $joinTable, $joinAlias, $joinName . '__');
$i++;
} elseif ($closure) {
$with[$key] = $closure;