summaryrefslogtreecommitdiff
path: root/framework/Data/ActiveRecord/TActiveRecordStateRegistry.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Data/ActiveRecord/TActiveRecordStateRegistry.php')
-rw-r--r--framework/Data/ActiveRecord/TActiveRecordStateRegistry.php33
1 files changed, 1 insertions, 32 deletions
diff --git a/framework/Data/ActiveRecord/TActiveRecordStateRegistry.php b/framework/Data/ActiveRecord/TActiveRecordStateRegistry.php
index 691090dc..d6f24961 100644
--- a/framework/Data/ActiveRecord/TActiveRecordStateRegistry.php
+++ b/framework/Data/ActiveRecord/TActiveRecordStateRegistry.php
@@ -39,7 +39,7 @@ class TActiveRecordStateRegistry
{
private $_cleanObjects=array();
private $_removedObjects;
- private $_cachedObjects=array();
+ //private $_cachedObjects=array();
/**
* Initialize the registry.
*/
@@ -49,37 +49,6 @@ class TActiveRecordStateRegistry
}
/**
- * Get the cached object for given type and row data. The cached object
- * must also be clean.
- * @param mixed row data fetched
- * @return TActiveRecord cached object if found, null otherwise.
- */
- public function getCachedInstance($data,$mustBeClean=true)
- {
- $key = $this->getObjectDataKey($data);
- if(isset($this->_cachedObjects[$key]))
- {
- $obj = $this->_cachedObjects[$key];
- if(!($mustBeClean && !$this->getIsCleanObject($obj)))
- return $obj;
- }
- }
-
- /**
- * Cache the object that corresponding to the fetched row data.
- * @param mixed row data fetched.
- * @param TActiveRecord object to be cached.
- * @return TActiveRecord cached object.
- */
- public function addCachedInstance($data,$obj)
- {
- $key = $this->getObjectDataKey($data);
- $this->registerClean($obj);
- $this->_cachedObjects[$key]=$obj;
- return $obj;
- }
-
- /**
* @return string hash of the data.
*/
protected function getObjectDataKey($data)