diff options
author | godzilla80@gmx.net <> | 2009-06-07 13:02:41 +0000 |
---|---|---|
committer | godzilla80@gmx.net <> | 2009-06-07 13:02:41 +0000 |
commit | cb0f97438fe634c5a95179d47c78af04fffa751b (patch) | |
tree | fc7aeb3c32854b68e9a5e907e70cf0b2f521afb5 /framework/Data/SqlMap/Configuration/TSqlMapXmlConfiguration.php | |
parent | 0847a5cb9bc02872e472622e1eec56896a412078 (diff) | |
parent | 5eca5a71c6d3ce82bb15bce57a06f7d84b011c8f (diff) |
Merging latest 3.1 changes into trunk (r2672-2677)
Diffstat (limited to 'framework/Data/SqlMap/Configuration/TSqlMapXmlConfiguration.php')
-rw-r--r-- | framework/Data/SqlMap/Configuration/TSqlMapXmlConfiguration.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/framework/Data/SqlMap/Configuration/TSqlMapXmlConfiguration.php b/framework/Data/SqlMap/Configuration/TSqlMapXmlConfiguration.php index 462b356f..f6e0acd5 100644 --- a/framework/Data/SqlMap/Configuration/TSqlMapXmlConfiguration.php +++ b/framework/Data/SqlMap/Configuration/TSqlMapXmlConfiguration.php @@ -712,6 +712,20 @@ class TSqlMapXmlMappingConfiguration extends TSqlMapXmlConfigBuilder }
$cache = Prado::createComponent($cacheModel->getImplementationClass());
$this->setObjectPropFromNode($cache,$node,$properties);
+
+ foreach($node->xpath('property') as $propertyNode)
+ {
+ $name = $propertyNode->attributes()->name;
+ if($name===null || $name==='') continue;
+
+ $value = $propertyNode->attributes()->value;
+ if($value===null || $value==='') continue;
+
+ if( !TPropertyAccess::has($cache, $name) ) continue;
+
+ TPropertyAccess::set($cache, $name, $value);
+ }
+
$this->loadFlushInterval($cacheModel,$node);
$cacheModel->initialize($cache);
|