mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 07:32:48 +08:00
Merge branch 'master' of https://github.com/top-think/framework
This commit is contained in:
@@ -2605,7 +2605,9 @@ class Query
|
|||||||
public function chunk($count, $callback, $column = null, $order = 'asc')
|
public function chunk($count, $callback, $column = null, $order = 'asc')
|
||||||
{
|
{
|
||||||
$options = $this->getOptions();
|
$options = $this->getOptions();
|
||||||
|
if (empty($options['table'])) {
|
||||||
|
$options['table'] = $this->getTable();
|
||||||
|
}
|
||||||
$column = $column ?: $this->getPk($options);
|
$column = $column ?: $this->getPk($options);
|
||||||
|
|
||||||
if (isset($options['order'])) {
|
if (isset($options['order'])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user