From 25098bfaeaac413787fbd06315c3b5554753eaec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 24 Feb 2021 18:48:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Database/Orm/Condition.php | 4 ---- Database/Traits/QueryTrait.php | 3 --- 2 files changed, 7 deletions(-) diff --git a/Database/Orm/Condition.php b/Database/Orm/Condition.php index 0d28142e..4ef49232 100644 --- a/Database/Orm/Condition.php +++ b/Database/Orm/Condition.php @@ -81,11 +81,7 @@ trait Condition $_tmp = []; if (empty($where)) return ''; - var_dump($where); foreach ($where as $value) { - - var_dump($value); - $_value = is_string($value) ? $value : $this->conditionMap($value); if (empty($_value)) continue; diff --git a/Database/Traits/QueryTrait.php b/Database/Traits/QueryTrait.php index ea20b0c2..c8e42c57 100644 --- a/Database/Traits/QueryTrait.php +++ b/Database/Traits/QueryTrait.php @@ -730,9 +730,6 @@ trait QueryTrait */ public function where(callable|array|string $conditions): static { - if (is_array($conditions)) { - $conditions = [$conditions]; - } $this->where[] = $conditions; return $this; }