eee
This commit is contained in:
@@ -38,8 +38,6 @@ trait QueryTrait
|
||||
|
||||
public bool $lock = false;
|
||||
|
||||
public bool $ifNotWhere = false;
|
||||
|
||||
|
||||
private SqlBuilder $builder;
|
||||
|
||||
@@ -310,28 +308,6 @@ trait QueryTrait
|
||||
return $this->join("INNER JOIN " . $tableName, $alias, $onCondition, $param);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $array
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
private function toString($array): string
|
||||
{
|
||||
$tmp = [];
|
||||
if (!is_array($array)) {
|
||||
return $array;
|
||||
}
|
||||
foreach ($array as $key => $val) {
|
||||
if (is_array($val)) {
|
||||
$tmp[] = $this->toString($array);
|
||||
} else {
|
||||
$tmp[] = $key . '=:' . $key;
|
||||
$this->attributes[':' . $key] = $val;
|
||||
}
|
||||
}
|
||||
return implode(' AND ', $tmp);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $field
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user