#78116extbase setting statement directly should support Doctrine\DBAL\Statement
Description
With the change to doctrine DBAL extbase direct query
should also support “\Doctrine\DBAL\Statement” as prepared statements
instead of only “\TYPO3\CMS\Core\Database\PreparedStatement“
especially as that class uses DatabaseConnection which is deprecated.
See the if condition in getObjectDataByRawQuery
https://git.typo3.org/Packages/TYPO3.CMS.git/blob/HEAD:/typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php#l399
which doesn’t check for possible doctrine prepared statement.