This commit is contained in:
2021-02-24 18:48:29 +08:00
parent 735c486579
commit 25098bfaea
2 changed files with 0 additions and 7 deletions
-4
View File
@@ -81,11 +81,7 @@ trait Condition
$_tmp = []; $_tmp = [];
if (empty($where)) return ''; if (empty($where)) return '';
var_dump($where);
foreach ($where as $value) { foreach ($where as $value) {
var_dump($value);
$_value = is_string($value) ? $value : $this->conditionMap($value); $_value = is_string($value) ? $value : $this->conditionMap($value);
if (empty($_value)) continue; if (empty($_value)) continue;
-3
View File
@@ -730,9 +730,6 @@ trait QueryTrait
*/ */
public function where(callable|array|string $conditions): static public function where(callable|array|string $conditions): static
{ {
if (is_array($conditions)) {
$conditions = [$conditions];
}
$this->where[] = $conditions; $this->where[] = $conditions;
return $this; return $this;
} }