Skip to content

Commit 56a14e3

Browse files
committed
rename count method
1 parent 459ae3f commit 56a14e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/SORM/Entity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ public function setPKName($pkName)
373373
return $this;
374374
}
375375

376-
public function getCount()
376+
public function getFullCount()
377377
{
378378
return (int)$this->driver->query("select count(*) from `{$this->getTableName()}`")->fetchRow()[0];
379379
}

src/SORM/EntityInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,6 @@ public function setPKName($pkName);
148148
*
149149
* @return int
150150
*/
151-
public function getCount();
151+
public function getFullCount();
152152

153153
}

0 commit comments

Comments
 (0)