Add clear() to clear formated items

This commit is contained in:
Deon George 2014-02-23 14:52:19 +11:00
parent e8664c1d28
commit a889d25eda
1 changed files with 7 additions and 0 deletions

View File

@ -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
*/