eee
This commit is contained in:
@@ -115,10 +115,11 @@ class Db extends QueryTrait implements ISqlBuilder
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
* @throws Exception
|
||||
*/
|
||||
public function exists(): bool
|
||||
{
|
||||
return $this->connection->createCommand(SqlBuilder::builder($this)->one())->rowCount() > 0;
|
||||
return $this->connection->createCommand(SqlBuilder::builder($this->limit(1))->exists())->exists();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user