[TASK] Deprecate DatabaseConnection based prepared statements in Extbase
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Classes / Persistence / Generic / Storage / Typo3DbBackend.php
index f1dc838..4eec01c 100644 (file)
@@ -379,6 +379,7 @@ class Typo3DbBackend implements BackendInterface, SingletonInterface
             }
             $rows = $result->fetchAll();
         } elseif ($realStatement instanceof \TYPO3\CMS\Core\Database\PreparedStatement) {
+            GeneralUtility::deprecationLog('Extbase support for Prepared Statements has been deprecated in TYPO3 v8, and will be removed in TYPO3 v9. Use native Doctrine DBAL Statements or QueryBuilder objects.');
             $realStatement->execute($parameters);
             $rows = $realStatement->fetchAll();