---
title: "Deprecation: #78224 - TYPO3_DB occurrences"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:deprecation-78224"
source: "Changelog/8.4/Deprecation-78224-TYPO3_DBOccurrences.rst"
typo3-version: "8.4"
typo3-major: 8
type: "deprecation"
issue: 78224
forge: "https://forge.typo3.org/issues/78224"
tags: ["PHP-API"]
rendered: "2026-09-17T21:17:42+00:00"
---

# Deprecation: #78224 - TYPO3_DB occurrences {#deprecation-78224-typo3-db-occurrences}

See [forge#78224](https://forge.typo3.org/issues/78224)

## Description {#description}

The TYPO3_DB shorthand functionality has been removed for most of the TYPO3 Core PHP classes, excepted for the following locations:

-   AbstractPlugin->databaseConnection (protected property)
-   AbstractFunctionModule::getDatabaseConnection()
-   BaseScriptClass::getDatabaseConnection()

For these occurrences extensions might extend the base functionality (e.g. for plugins or modules) and the call to the property and
protected methods still work.

Calling `$GLOBALS[TYPO3_DB]` is still possible but discouraged.

## Impact {#impact}

Calling any of the methods above will trigger a deprecation log entry.

## Affected Installations {#affected-installations}

Any TYPO3 instances with references to TYPO3_DB or references to the occurrences mentioned above.

## Migration {#migration}

Use the ConnectionPool and the QueryBuilder classes to achieve future-proof and proper database abstraction for future TYPO3
versions.
