Project

General

Profile

Actions

Bug #80781

closed

QueryResult in conjunction with \Doctrine\DBAL\Statement returns "Call to a member function fetchAll() on boolean" when converting as array

Added by Martin Born over 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Database API (Doctrine DBAL)
Target version:
Start date:
2017-04-10
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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

Actions #1

Updated by Martin Born over 7 years ago

Call to a member function fetchAll() on boolean
Actions #2

Updated by Martin Born over 7 years ago

  • Description updated (diff)
Actions #4

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)

Actions #5

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

Actions #6

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

Actions #7

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

Actions #8

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

Actions #9

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

Actions #10

Updated by Sven Carstens over 7 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #11

Updated by Riccardo De Contardi about 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF