summaryrefslogtreecommitdiff
path: root/framework/Data/SqlMap/Configuration/TParameterProperty.php
diff options
context:
space:
mode:
authorctrlaltca@gmail.com <>2011-06-26 09:56:56 +0000
committerctrlaltca@gmail.com <>2011-06-26 09:56:56 +0000
commit8dc9d4f7d49bcbeaf4998baf74a4f4459967c1f0 (patch)
treef2a1a3ddb20418e78e4f0b445866ac2605bff736 /framework/Data/SqlMap/Configuration/TParameterProperty.php
parentf5a87398433ebecefbc62d4fead8a178e32a1f26 (diff)
applied serialization optimization patch (337)
Diffstat (limited to 'framework/Data/SqlMap/Configuration/TParameterProperty.php')
-rw-r--r--framework/Data/SqlMap/Configuration/TParameterProperty.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/framework/Data/SqlMap/Configuration/TParameterProperty.php b/framework/Data/SqlMap/Configuration/TParameterProperty.php
index de879c4b..961bfecc 100644
--- a/framework/Data/SqlMap/Configuration/TParameterProperty.php
+++ b/framework/Data/SqlMap/Configuration/TParameterProperty.php
@@ -134,5 +134,17 @@ class TParameterProperty extends TComponent
{
$this->_nullValue = $value;
}
+
+ public function __sleep()
+ {
+ $exprops = array(); $cn = 'TParameterProperty';
+ if ($this->_typeHandler===null) $exprops[] = "\0$cn\0_typeHandler";
+ if ($this->_type===null) $exprops[] = "\0$cn\0_type";
+ if ($this->_column===null) $exprops[] = "\0$cn\0_column";
+ if ($this->_dbType===null) $exprops[] = "\0$cn\0_dbType";
+ if ($this->_property===null) $exprops[] = "\0$cn\0_property";
+ if ($this->_nullValue===null) $exprops[] = "\0$cn\0_nullValue";
+ return array_diff(parent::__sleep(),$exprops);
+ }
}