public function reestablishConnection($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::dropConnection($connection); static::clearCache(); } return $this->conn = ConnectionManager::getConnection($connection); }