/** * Destructor. */ public function __destruct() { if ($this->dbh_ro) { $this->dbh_ro->disconnect(); } if ($this->dbh_rw) { $this->dbh_rw->disconnect(); } parent::__destruct(); }