mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
改进where和whereor闭包查询
This commit is contained in:
@@ -727,7 +727,7 @@ class Query
|
||||
protected function parseWhereExp($operator, $field, $op, $condition, $param = [])
|
||||
{
|
||||
if ($field instanceof \Closure) {
|
||||
call_user_func_array($field, [ & $this]);
|
||||
$this->options['where'][$operator][] = $field;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user