Zend framework2 使用Zend类\db\sql\select时出错

Zend framework2 使用Zend类\db\sql\select时出错,zend-framework2,Zend Framework2,我在使用Zend类db、sql和select时遇到问题。“我的用户”表有10行,但只返回一行结果 文件模型: public function DbFetchAll ($ table) { try { $ select = $ this -> _ sql-> select (); $ Select-> from ($ table); $ statement = $ this -> _ sql-> prep

我在使用Zend类
db
sql
select
时遇到问题。“我的用户”表有10行,但只返回一行结果

文件模型:

public function DbFetchAll ($ table) {
     try {
         $ select = $ this -> _ sql-> select ();
         $ Select-> from ($ table);
         $ statement = $ this -> _ sql-> prepareStatementForSqlObject ($ select);
         $ result = $ statement-> execute () -> current ();
         return $ result;
     } Catch (Exception $ exc) {
         echo $ exc-> getMessage ();
     }
->current()返回当前指向记录。尝试删除它。它应该会起作用