This commit is contained in:
2021-02-24 18:56:29 +08:00
parent 8f4ec6dd97
commit 897bdfe95b
2 changed files with 2 additions and 6 deletions
+2 -5
View File
@@ -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);
} }
-1
View File
@@ -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;
} }