function unregisterConnection(DbInterface $connection) { unset($this->connections[$connection->getConnectionId()]); }