改名
This commit is contained in:
@@ -80,6 +80,8 @@ 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);
|
var_dump($value);
|
||||||
|
|||||||
@@ -730,9 +730,11 @@ trait QueryTrait
|
|||||||
*/
|
*/
|
||||||
public function where(callable|array|string $conditions): static
|
public function where(callable|array|string $conditions): static
|
||||||
{
|
{
|
||||||
|
var_dump($conditions);
|
||||||
if (is_array($conditions)) {
|
if (is_array($conditions)) {
|
||||||
$conditions = [$conditions];
|
$conditions = [$conditions];
|
||||||
}
|
}
|
||||||
|
var_dump($conditions);
|
||||||
$this->where[] = $conditions;
|
$this->where[] = $conditions;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user