change delete returned
This commit is contained in:
+7
-7
@@ -329,16 +329,16 @@ class ActiveQuery extends Component implements ISqlBuilder
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param bool $getSql
|
* @param bool $getSql
|
||||||
* @return int|bool|string|null
|
* @return bool|string
|
||||||
* @throws
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
public function delete(bool $getSql = FALSE): int|bool|string|null
|
public function delete(bool $getSql = FALSE): bool|string
|
||||||
{
|
{
|
||||||
$sql = $this->builder->delete();
|
$sql = $this->builder->delete();
|
||||||
if ($getSql === FALSE) {
|
if ($getSql === FALSE) {
|
||||||
return $this->execute($sql)->delete();
|
return (bool)$this->execute($sql)->delete();
|
||||||
}
|
}
|
||||||
return $sql;
|
return $sql;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user