Bug #80781
closedQueryResult in conjunction with \Doctrine\DBAL\Statement returns "Call to a member function fetchAll() on boolean" when converting as array
100%
Description
The code below leads to an exception in \TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend in line 380:
$connection = $this->objectManager->get(ConnectionPool::class)->getConnectionForTable('tx_myext_domain_model_record'); $statement = $this->objectManager->get( \Doctrine\DBAL\Statement::class, 'select * from tx_myext_domain_model_record', $connection ); $query = $this->createQuery(); $query->statement($statement); $query->execute(true);
or
$result = $query->execute(); $result->toArray();
Files
Updated by Martin Born over 7 years ago
Call to a member function fetchAll() on boolean
Updated by Wouter Wolters over 7 years ago
Hi Martin, would you mind pushing your patch up for review?
Our contribution workflow is documented here: https://docs.typo3.org/typo3cms/ContributionWorkflowGuide/
If you need further help join us on Slack: typo3.slack.com in channel #typo3-cms-coredev (https://forger.typo3.org/slack for registering)
Updated by Gerrit Code Review over 7 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52435
Updated by Gerrit Code Review over 7 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52435
Updated by Gerrit Code Review over 7 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52435
Updated by Gerrit Code Review over 7 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52435
Updated by Gerrit Code Review over 7 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52435
Updated by Sven Carstens over 7 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset e68e737e93ae194c626181df196615b56468a139.
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed