开发者

How do I get total record count from Doctrine_Pager?

I am tryign to use Doctrine_Pager for the first time. So I have the following code.

    $q = Doctrine_Query::create()
         ->from("Member m");


    $pager = new Doctrine_Pager($q,1,10);
    $result = $pager->execu开发者_高级运维te();

I need to know total record count of Member table. How do I get it??


Found it myself.

$pager->getNumResults() returns the value.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜