summaryrefslogtreecommitdiff
path: root/framework/Data/SqlMap
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Data/SqlMap')
-rw-r--r--framework/Data/SqlMap/Configuration/TSqlMapCacheModel.php10
-rw-r--r--framework/Data/SqlMap/DataMapper/TPropertyAccess.php2
2 files changed, 7 insertions, 5 deletions
diff --git a/framework/Data/SqlMap/Configuration/TSqlMapCacheModel.php b/framework/Data/SqlMap/Configuration/TSqlMapCacheModel.php
index 264997c0..b860659b 100644
--- a/framework/Data/SqlMap/Configuration/TSqlMapCacheModel.php
+++ b/framework/Data/SqlMap/Configuration/TSqlMapCacheModel.php
@@ -83,7 +83,7 @@ class TSqlMapCacheModel extends \Prado\TComponent
if (isset(self::$_cacheTypes[$value]))
$this->_implementation = $value;
else
- $this->_implementation = TPropertyValue::ensureEnum($value,'TSqlMapCacheTypes');
+ $this->_implementation = TPropertyValue::ensureEnum($value,'Prado\\Data\\SqlMap\\Configuration\\TSqlMapCacheTypes');
}
/**
@@ -122,11 +122,11 @@ class TSqlMapCacheModel extends \Prado\TComponent
$implementation = $this->_implementation;
if (isset(self::$_cacheTypes[$implementation])) return self::$_cacheTypes[$implementation];
- switch(TPropertyValue::ensureEnum($implementation,'TSqlMapCacheTypes'))
+ switch(TPropertyValue::ensureEnum($implementation,'Prado\\Data\\SqlMap\\Configuration\\TSqlMapCacheTypes'))
{
- case TSqlMapCacheTypes::FIFO: return 'TSqlMapFifoCache';
- case TSqlMapCacheTypes::LRU : return 'TSqlMapLruCache';
- case TSqlMapCacheTypes::Basic : return 'TSqlMapApplicationCache';
+ case TSqlMapCacheTypes::FIFO: return '\\Prado\\Data\\SqlMap\\DataMapper\\TSqlMapFifoCache';
+ case TSqlMapCacheTypes::LRU : return '\\Prado\\Data\\SqlMap\\DataMapper\\TSqlMapLruCache';
+ case TSqlMapCacheTypes::Basic : return '\\Prado\\Data\\SqlMap\\DataMapper\\TSqlMapApplicationCache';
}
}
diff --git a/framework/Data/SqlMap/DataMapper/TPropertyAccess.php b/framework/Data/SqlMap/DataMapper/TPropertyAccess.php
index 666f105b..0b57fcc3 100644
--- a/framework/Data/SqlMap/DataMapper/TPropertyAccess.php
+++ b/framework/Data/SqlMap/DataMapper/TPropertyAccess.php
@@ -11,6 +11,8 @@
namespace Prado\Data\SqlMap\DataMapper;
+use Prado\Exceptions\TInvalidDataValueException;
+
/**
* TPropertyAccess class provides dot notation stype property access and setting.
*