MINOR: fix typo

This commit is contained in:
Mateusz Uzdowski 2012-04-12 12:47:17 +12:00
parent 21f7eb19e4
commit 360e9df54e

View File

@ -2659,13 +2659,13 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
/**
* Flush the cached results for all relations (has_one, has_many, many_many)
* Also clears any cached aggregate data
*
* @param boolean $persistant When true will also clear persistant data stored in the Cache system.
*
* @param boolean $persistent When true will also clear persistent data stored in the Cache system.
* When false will just clear session-local cached data
*
*
*/
public function flushCache($persistant = true) {
if($persistant) Aggregate::flushCache($this->class);
public function flushCache($persistent = true) {
if($persistent) Aggregate::flushCache($this->class);
if($this->class == 'DataObject') {
DataObject::$cache_get_one = array();