From f05f85fcfe9fd46f37f79d014f2544bc96bb16da Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Wed, 29 May 2013 20:12:24 -0400 Subject: [PATCH] Removed Connection::__sleep. --- framework/yii/db/Connection.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/framework/yii/db/Connection.php b/framework/yii/db/Connection.php index e14eeb7..f8883bb 100644 --- a/framework/yii/db/Connection.php +++ b/framework/yii/db/Connection.php @@ -251,16 +251,7 @@ class Connection extends Component */ private $_schema; - /** - * Closes the connection when this component is being serialized. - * @return array - */ - public function __sleep() - { - $this->close(); - return array_keys(get_object_vars($this)); - } - + /** * Returns a value indicating whether the DB connection is established. * @return boolean whether the DB connection is established