Issue Bug Closed

#78116extbase setting statement directly should support Doctrine\DBAL\Statement

Andreas Allacher 09/29/16, 19:51 updated 10/17/17, 23:24

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.

Reviews 1