eee
This commit is contained in:
+1
-1
@@ -154,7 +154,7 @@ class ActiveQuery extends QueryTrait implements ISqlBuilder
|
|||||||
*/
|
*/
|
||||||
public function count(): int
|
public function count(): int
|
||||||
{
|
{
|
||||||
return $this->buildCommand($this->select(['count(*)'])->builder->count())->rowCount();
|
return $this->buildCommand((clone $this)->select(['count(*)'])->builder->count())->rowCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user