Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 731af328d7 | |||
| 5756573d8d | |||
| eb75e69d60 |
@@ -194,7 +194,7 @@ trait Builder
|
||||
$class = $defaultConfig['class'];
|
||||
unset($defaultConfig['class']);
|
||||
|
||||
$builder = Kiri::getDi()->get($class, [], $defaultConfig);
|
||||
$builder = Kiri::getDi()->make($class, [], $defaultConfig);
|
||||
$builder->setValue($condition[2]);
|
||||
$builder->setColumn($condition[1]);
|
||||
} else {
|
||||
|
||||
@@ -522,7 +522,7 @@ trait QueryTrait
|
||||
$conditionArray = $this->sprintf($conditionArray, $value, $opera);
|
||||
}
|
||||
|
||||
$this->where = ['(' . implode(' AND ', $this->where) . ') OR (' . $conditionArray . ')'];
|
||||
$this->where = ['((' . implode(' AND ', $this->where) . ') OR (' . $conditionArray . '))'];
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user