diff options
Diffstat (limited to 'core/libraries/MY_ORM.php')
-rw-r--r-- | core/libraries/MY_ORM.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/core/libraries/MY_ORM.php b/core/libraries/MY_ORM.php index 7c55b0c9..cc359799 100644 --- a/core/libraries/MY_ORM.php +++ b/core/libraries/MY_ORM.php @@ -28,3 +28,17 @@ class ORM extends ORM_Core { return $this; } } + +/** + * Slide this in here for convenience. We won't ever be overloading ORM_Iterator without ORM. + */ +class ORM_Iterator extends ORM_Iterator_Core { + /** + * Cache the result row + */ + public function current() { + $row = parent::current(); + model_cache::set($row); + return $row; + } +}
\ No newline at end of file |