Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Call to undefined method Phalcon\Db\Result\Pdo::nextRowSet()

Hi,everyone! I used Phalcon in my project. It had worked well until I moved my project from one server to another and updated Phalcon to the latest version. The following code which had worked very well throwed a fatal error.

        $sql = "CALL p_get_question(".$question_id.",'".$answer_orderby."');";
        $myModel = new question();


            $this->response->setStatusCode(404,"Not Found");


And the error:

    Fatal error: Call to undefined method Phalcon\Db\Result\Pdo::nextRowSet() in D:\visual studio projects\UtillYou\app\controllers\QuestionController.php on line 25

Anybody can help me? Thanks!


nextRowSet() is missing from phalcon 2.0. You should submit a feature request on github since wasn't ported to 2.0.

If you're coming from Phalcon 1.3 you'll have to make some changes to your code to work with Phalcon 2.0, or stick with 1.3 for now.

You can directly call PDOStatement::nextrowset using getInternalResult do { //Handle each result set } while($resultSet->getInternalResult()->nextRowset() && $resultSet->getInternalResult()->columnCount()>0);