diff --git a/classes/lnApp/ORM.php b/classes/lnApp/ORM.php index 8b525e2..5966b42 100644 --- a/classes/lnApp/ORM.php +++ b/classes/lnApp/ORM.php @@ -44,6 +44,13 @@ abstract class lnApp_ORM extends Kohana_ORM { return $this->_db->caching($this->_table_name) ? parent::cached($lifetime) : $this; } + public function clear() { + $this->_formated = FALSE; + $this->_object_formated = array(); + + return parent::clear(); + } + /** * Return a formated columns, as per the model definition */