改名
This commit is contained in:
@@ -14,9 +14,6 @@ use Snowflake\Snowflake;
|
|||||||
use Database\ActiveQuery;
|
use Database\ActiveQuery;
|
||||||
use Database\Base\ConditionClassMap;
|
use Database\Base\ConditionClassMap;
|
||||||
use Database\Condition\HashCondition;
|
use Database\Condition\HashCondition;
|
||||||
use Database\Sql;
|
|
||||||
use Database\Traits\QueryTrait;
|
|
||||||
use Database\Condition\Condition as CCondition;
|
|
||||||
use Exception;
|
use Exception;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -80,8 +77,6 @@ trait Condition
|
|||||||
{
|
{
|
||||||
$_tmp = [];
|
$_tmp = [];
|
||||||
if (empty($where)) return '';
|
if (empty($where)) return '';
|
||||||
|
|
||||||
var_dump($where);
|
|
||||||
foreach ($where as $key => $value) {
|
foreach ($where as $key => $value) {
|
||||||
$_value = is_string($value) ? $value : $this->conditionMap($value);
|
$_value = is_string($value) ? $value : $this->conditionMap($value);
|
||||||
|
|
||||||
@@ -107,6 +102,8 @@ trait Condition
|
|||||||
if (is_string($condition) || empty($condition)) {
|
if (is_string($condition) || empty($condition)) {
|
||||||
return $condition;
|
return $condition;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var_dump($condition);
|
||||||
foreach ($condition as $key => $value) {
|
foreach ($condition as $key => $value) {
|
||||||
$array = $this->resolve($array, $key, $value);
|
$array = $this->resolve($array, $key, $value);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -731,7 +731,6 @@ trait QueryTrait
|
|||||||
public function where(callable|array|string $conditions): static
|
public function where(callable|array|string $conditions): static
|
||||||
{
|
{
|
||||||
$this->where[] = $conditions;
|
$this->where[] = $conditions;
|
||||||
var_dump($this->where);
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user