mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-19 01:34:44 +08:00
Removed Connection::__sleep.
This commit is contained in:
@ -251,15 +251,6 @@ 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.
|
||||||
|
Reference in New Issue
Block a user