public function reestablish_connection($close = true) { // if connection name property is null the connection manager will use the default connection $connection = $this->class->getStaticPropertyValue('connection', null); if ($close) { ConnectionManager::drop_connection($connection); static::clear_cache(); } return $this->conn = ConnectionManager::get_connection($connection); }