summaryrefslogtreecommitdiff
path: root/idiorm.php
diff options
context:
space:
mode:
authorFayland Lam <[email protected]>2013-01-29 09:58:01 +0000
committerSimon Holywell <[email protected]>2013-01-29 09:58:01 +0000
commit9f9fd4d5666d73e3e143a5428fd32e43abeee8f5 (patch)
treea27000daeb8c8289e55a82cd784213d5dd85a541 /idiorm.php
parent5a0bb6a42cc808bf6c6198ae45905c577470704c (diff)
Reset _run() to enable calling find_many after count
Diffstat (limited to 'idiorm.php')
-rw-r--r--idiorm.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/idiorm.php b/idiorm.php
index 490bda7..7e0c50d 100644
--- a/idiorm.php
+++ b/idiorm.php
@@ -1503,6 +1503,11 @@
self::_cache_query_result($cache_key, $rows, $this->_connection_name);
}
+ // reset Idiorm after executing the query
+ $this->_values = array();
+ $this->_result_columns = array('*');
+ $this->_using_default_result_columns = true;
+
return $rows;
}