Add clear() to clear formated items
This commit is contained in:
parent
e8664c1d28
commit
a889d25eda
@ -44,6 +44,13 @@ abstract class lnApp_ORM extends Kohana_ORM {
|
|||||||
return $this->_db->caching($this->_table_name) ? parent::cached($lifetime) : $this;
|
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
|
* Return a formated columns, as per the model definition
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user