This commit is contained in:
2024-04-29 21:55:31 +08:00
parent 2b85cb4ec3
commit ed0d044223
+2 -2
View File
@@ -158,7 +158,7 @@ class Db extends QueryTrait implements ISqlBuilder
*/ */
public function first(): bool|array|null public function first(): bool|array|null
{ {
return $this->connection->createCommand(SqlBuilder::builder($this)->delete())->one(); return $this->connection->createCommand(SqlBuilder::builder($this)->one())->one();
} }
@@ -167,7 +167,7 @@ class Db extends QueryTrait implements ISqlBuilder
*/ */
public function get(): bool|array public function get(): bool|array
{ {
return $this->connection->createCommand(SqlBuilder::builder($this)->delete())->all(); return $this->connection->createCommand(SqlBuilder::builder($this)->all())->all();
} }