summaryrefslogtreecommitdiff
path: root/framework/Data/SqlMap/TSqlMapManager.php
diff options
context:
space:
mode:
authorgodzilla80@gmx.net <>2009-05-23 07:52:15 +0000
committergodzilla80@gmx.net <>2009-05-23 07:52:15 +0000
commit362aea9c8764437119d09eb6343851db4298a035 (patch)
tree449e390bfb592336ed13e350f6dac38f454b2c4d /framework/Data/SqlMap/TSqlMapManager.php
parente4587335b8c79bc2dc726da4f39ef43a0034247f (diff)
Fixed Issue#161 - SqlMap add cache dependencies if TApplicationMode Debug/Normal
Diffstat (limited to 'framework/Data/SqlMap/TSqlMapManager.php')
-rw-r--r--framework/Data/SqlMap/TSqlMapManager.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/framework/Data/SqlMap/TSqlMapManager.php b/framework/Data/SqlMap/TSqlMapManager.php
index 290050d1..432c1c5e 100644
--- a/framework/Data/SqlMap/TSqlMapManager.php
+++ b/framework/Data/SqlMap/TSqlMapManager.php
@@ -18,6 +18,7 @@ Prado::using('System.Data.SqlMap.Configuration.TSqlMapStatement');
Prado::using('System.Data.SqlMap.Configuration.*');
Prado::using('System.Data.SqlMap.DataMapper.*');
Prado::using('System.Data.SqlMap.Statements.*');
+Prado::using('System.Caching.TCache');
/**
@@ -50,6 +51,7 @@ class TSqlMapManager extends TComponent
private $_connection;
private $_gateway;
+ private $_cacheDependencies;
/**
* Constructor, create a new SqlMap manager.
@@ -113,6 +115,18 @@ class TSqlMapManager extends TComponent
}
/**
+ * @return TChainedCacheDependency
+ * @since 3.1.5
+ */
+ public function getCacheDependencies()
+ {
+ if($this->_cacheDependencies === null)
+ $this->_cacheDependencies=new TChainedCacheDependency();
+
+ return $this->_cacheDependencies;
+ }
+
+ /**
* Configures the current TSqlMapManager using the given xml configuration file
* defined in {@link ConfigFile setConfigFile()}.
* @return TSqlMapGateway create and configure a new TSqlMapGateway.