From 5c9bf86b82a111d1efd94af6800e24e650131c35 Mon Sep 17 00:00:00 2001 From: alkana Date: Sun, 11 May 2014 22:19:04 +0200 Subject: [PATCH] Fix valid function for the first call --- phalcon/mvc/model/resultset/simple.zep | 1 + 1 file changed, 1 insertion(+) diff --git a/phalcon/mvc/model/resultset/simple.zep b/phalcon/mvc/model/resultset/simple.zep index 0526cacc556..4553dcf389d 100644 --- a/phalcon/mvc/model/resultset/simple.zep +++ b/phalcon/mvc/model/resultset/simple.zep @@ -108,6 +108,7 @@ class Simple extends \Phalcon\Mvc\Model\Resultset let result = this->_result; if typeof result == "object" { let this->_rows = result->fetchAll(); + let rows = this->_rows; } }