summaryrefslogtreecommitdiff
path: root/framework/Data/SqlMap/Configuration/TResultProperty.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/TResultProperty.php
parentf5a87398433ebecefbc62d4fead8a178e32a1f26 (diff)
applied serialization optimization patch (337)
Diffstat (limited to 'framework/Data/SqlMap/Configuration/TResultProperty.php')
-rw-r--r--framework/Data/SqlMap/Configuration/TResultProperty.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/framework/Data/SqlMap/Configuration/TResultProperty.php b/framework/Data/SqlMap/Configuration/TResultProperty.php
index ce32a17d..8d146e66 100644
--- a/framework/Data/SqlMap/Configuration/TResultProperty.php
+++ b/framework/Data/SqlMap/Configuration/TResultProperty.php
@@ -324,5 +324,21 @@ class TResultProperty extends TComponent
}
return $this->getPropertyValueType() == self::ARRAY_TYPE;
}
+
+ public function __sleep()
+ {
+ $exprops = array(); $cn = 'TResultProperty';
+ if ($this->_nullValue===null) $exprops[] = "\0$cn\0_nullValue";
+ if ($this->_propertyName===null) $exprops[] = "\0$cn\0_propertyNama";
+ if ($this->_columnName===null) $exprops[] = "\0$cn\0_columnName";
+ if ($this->_columnIndex==-1) $exprops[] = "\0$cn\0_columnIndex";
+ if ($this->_nestedResultMapName===null) $exprops[] = "\0$cn\0_nestedResultMapName";
+ if ($this->_nestedResultMap===null) $exprops[] = "\0$cn\0_nestedResultMap";
+ if ($this->_valueType===null) $exprops[] = "\0$cn\0_valueType";
+ if ($this->_typeHandler===null) $exprops[] = "\0$cn\0_typeHandler";
+ if ($this->_isLazyLoad===false) $exprops[] = "\0$cn\0_isLazyLoad";
+ if ($this->_select===null) $exprops[] = "\0$cn\0_select";
+ return array_diff(parent::__sleep(),$exprops);
+ }
}