Commit f05f85fc by Qiang Xue

Removed Connection::__sleep.

parent 9339edbd
...@@ -251,16 +251,7 @@ class Connection extends Component ...@@ -251,16 +251,7 @@ class Connection extends Component
*/ */
private $_schema; 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. * Returns a value indicating whether the DB connection is established.
* @return boolean whether the DB connection is established * @return boolean whether the DB connection is established
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment