diff --git a/Db.php b/Db.php index d0dea49..ebf60f1 100644 --- a/Db.php +++ b/Db.php @@ -158,7 +158,7 @@ class Db extends QueryTrait implements ISqlBuilder */ 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 { - return $this->connection->createCommand(SqlBuilder::builder($this)->delete())->all(); + return $this->connection->createCommand(SqlBuilder::builder($this)->all())->all(); }