diff options
author | wei <> | 2006-04-14 11:23:56 +0000 |
---|---|---|
committer | wei <> | 2006-04-14 11:23:56 +0000 |
commit | f6a5e7589396854e10e023c25237b47e512ff047 (patch) | |
tree | 2b313bb8b66869235ee06b9cae2af2f7645cf5c9 /framework/DataAccess/SQLMap/TSqlMapClient.php | |
parent | 3d3f8d3832921f99daf8ce1953304763c2e76c62 (diff) |
Adding SQLMap unit tests. Allow sqlmap to use Prado's caching module to cache records.
Diffstat (limited to 'framework/DataAccess/SQLMap/TSqlMapClient.php')
-rw-r--r-- | framework/DataAccess/SQLMap/TSqlMapClient.php | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/framework/DataAccess/SQLMap/TSqlMapClient.php b/framework/DataAccess/SQLMap/TSqlMapClient.php index 7662d83e..5f531f64 100644 --- a/framework/DataAccess/SQLMap/TSqlMapClient.php +++ b/framework/DataAccess/SQLMap/TSqlMapClient.php @@ -44,7 +44,6 @@ class TSqlMapClient {
if(!is_file($this->_cache))
{
- var_dump('saving cache to file', $this->_cache);
file_put_contents($this->_cache,serialize($this->_mapper));
return true;
}
@@ -57,12 +56,10 @@ class TSqlMapClient $this->_cache = $this->getCacheFile($file);
if($loadFromCache && $this->_cache !== false && is_file($this->_cache))
{
- var_dump('loading from cache: '.$this->_cache);
$this->_mapper = unserialize(file_get_contents($this->_cache));
}
else
{
-// var_dump('build from *.xml');
$builder = new TDomSqlMapBuilder();
$this->_mapper = $builder->configure($file);
}
|