public function __sleep()
{
$cn = __CLASS__;
$exprops = array("{$cn}_resultMap");
if (!$this->_parameterMapName) {
$exprops[] = "{$cn}_parameterMapName";
}
if (!$this->_parameterMap) {
$exprops[] = "{$cn}_parameterMap";
}
if (!$this->_parameterClassName) {
$exprops[] = "{$cn}_parameterClassName";
}
if (!$this->_resultMapName) {
$exprops[] = "{$cn}_resultMapName";
}
if (!$this->_resultMap) {
$exprops[] = "{$cn}_resultMap";
}
if (!$this->_resultClassName) {
$exprops[] = "{$cn}_resultClassName";
}
if (!$this->_cacheModelName) {
$exprops[] = "{$cn}_cacheModelName";
}
if (!$this->_SQL) {
$exprops[] = "{$cn}_SQL";
}
if (!$this->_listClass) {
$exprops[] = "{$cn}_listClass";
}
if (!$this->_typeHandler) {
$exprops[] = "{$cn}_typeHandler";
}
if (!$this->_extendStatement) {
$exprops[] = "{$cn}_extendStatement";
}
if (!$this->_cache) {
$exprops[] = "{$cn}_cache";
}
return array_diff(parent::__sleep(), $exprops);
}