diff options
author | ctrlaltca@gmail.com <> | 2011-06-26 09:56:56 +0000 |
---|---|---|
committer | ctrlaltca@gmail.com <> | 2011-06-26 09:56:56 +0000 |
commit | 8dc9d4f7d49bcbeaf4998baf74a4f4459967c1f0 (patch) | |
tree | f2a1a3ddb20418e78e4f0b445866ac2605bff736 /framework/Data/ActiveRecord | |
parent | f5a87398433ebecefbc62d4fead8a178e32a1f26 (diff) |
applied serialization optimization patch (337)
Diffstat (limited to 'framework/Data/ActiveRecord')
-rw-r--r-- | framework/Data/ActiveRecord/TActiveRecord.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/framework/Data/ActiveRecord/TActiveRecord.php b/framework/Data/ActiveRecord/TActiveRecord.php index 3bbc2dbc..6a709162 100644 --- a/framework/Data/ActiveRecord/TActiveRecord.php +++ b/framework/Data/ActiveRecord/TActiveRecord.php @@ -203,8 +203,7 @@ abstract class TActiveRecord extends TComponent */ public function __sleep() { - $this->_connection=null; - return array_keys(get_object_vars($this)); + return array_diff(parent::__sleep(),array("\0*\0_connection")); } /** |