改名
This commit is contained in:
@@ -15,6 +15,7 @@ use Database\ActiveQuery;
|
|||||||
use Database\ActiveRecord;
|
use Database\ActiveRecord;
|
||||||
use Database\Condition\MathematicsCondition;
|
use Database\Condition\MathematicsCondition;
|
||||||
use Database\Query;
|
use Database\Query;
|
||||||
|
use Database\SqlBuilder;
|
||||||
use Exception;
|
use Exception;
|
||||||
use ReflectionException;
|
use ReflectionException;
|
||||||
use Snowflake\Exception\NotFindClassException;
|
use Snowflake\Exception\NotFindClassException;
|
||||||
@@ -505,7 +506,10 @@ trait QueryTrait
|
|||||||
if ($conditionArray instanceof Closure) {
|
if ($conditionArray instanceof Closure) {
|
||||||
$conditionArray = $this->makeClosureFunction($conditionArray);
|
$conditionArray = $this->makeClosureFunction($conditionArray);
|
||||||
}
|
}
|
||||||
$this->where = ['or', $conditionArray];
|
|
||||||
|
$oldWhere = SqlBuilder::builder((new Query())->where($this->where))->getCondition();
|
||||||
|
|
||||||
|
$this->where = ['or', $conditionArray, $oldWhere];
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user