summaryrefslogtreecommitdiff
path: root/framework/Data/SqlMap/Configuration/TSqlMapStatement.php
diff options
context:
space:
mode:
authorctrlaltca@gmail.com <>2012-02-14 08:13:27 +0000
committerctrlaltca@gmail.com <>2012-02-14 08:13:27 +0000
commit1eaa6ca1775d335e2307d958c7f0ad27f7cd6807 (patch)
tree7a5727afab407a03047ae2435da03beadab7d941 /framework/Data/SqlMap/Configuration/TSqlMapStatement.php
parent978dc9648c959b77365fed2d954e1bab54aa2e32 (diff)
further SqlMap optimizations; refs #337
Diffstat (limited to 'framework/Data/SqlMap/Configuration/TSqlMapStatement.php')
-rw-r--r--framework/Data/SqlMap/Configuration/TSqlMapStatement.php17
1 files changed, 16 insertions, 1 deletions
diff --git a/framework/Data/SqlMap/Configuration/TSqlMapStatement.php b/framework/Data/SqlMap/Configuration/TSqlMapStatement.php
index 3a62cbed..880e1057 100644
--- a/framework/Data/SqlMap/Configuration/TSqlMapStatement.php
+++ b/framework/Data/SqlMap/Configuration/TSqlMapStatement.php
@@ -295,7 +295,22 @@ class TSqlMapStatement extends TComponent
public function __sleep()
{
- return array_diff(parent::__sleep(),array("\0TSqlMapStatement\0_resultMap"));
+ $cn = __CLASS__;
+ $exprops = array("\0$cn\0_resultMap");
+ if (!$this->_parameterMapName) $exprops[] = "\0$cn\0_parameterMapName";
+ if (!$this->_parameterMap) $exprops[] = "\0$cn\0_parameterMap";
+ if (!$this->_parameterClassName) $exprops[] = "\0$cn\0_parameterClassName";
+ if (!$this->_resultMapName) $exprops[] = "\0$cn\0_resultMapName";
+ if (!$this->_resultMap) $exprops[] = "\0$cn\0_resultMap";
+ if (!$this->_resultClassName) $exprops[] = "\0$cn\0_resultClassName";
+ if (!$this->_cacheModelName) $exprops[] = "\0$cn\0_cacheModelName";
+ if (!$this->_SQL) $exprops[] = "\0$cn\0_SQL";
+ if (!$this->_listClass) $exprops[] = "\0$cn\0_listClass";
+ if (!$this->_typeHandler) $exprops[] = "\0$cn\0_typeHandler";
+ if (!$this->_extendStatement) $exprops[] = "\0$cn\0_extendStatement";
+ if (!$this->_cache) $exprops[] = "\0$cn\0_cache";
+
+ return array_diff(parent::__sleep(),$exprops);
}
}