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.
<?php
$sql = "CALL p_get_question(".$question_id.",'".$answer_orderby."');";
$myModel = new question();
$query=$myModel->getReadConnection()->query($sql);
$question_result=$query->fetchAll();
if(count($question_result)!=1){
$this->response->setStatusCode(404,"Not Found");
$this->view->disable();
}else{
$this->view->question=$question_result[0];
$query->nextRowSet();
$this->view->question_supplement=$query->fetchAll();
}
?>
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!