eee
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user