This commit is contained in:
thinkphp
2018-01-05 15:11:38 +08:00

View File

@@ -2605,7 +2605,9 @@ class Query
public function chunk($count, $callback, $column = null, $order = 'asc')
{
$options = $this->getOptions();
if (empty($options['table'])) {
$options['table'] = $this->getTable();
}
$column = $column ?: $this->getPk($options);
if (isset($options['order'])) {