Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Argument 1 passed to Hydration\AbstractHydrator::toIterable() must implement interface Doctrine\DBAL\Driver\Statement, instance of Doctrine\DBAL\ForwardCompatibility\Result given, called in ORM/AbstractQuery.php on line 1010 #4567

Closed
BusterNeece opened this issue Mar 31, 2021 · 3 comments

Comments

@BusterNeece
Copy link

Bug Report

Q A
BC Break yes
Version 2.13.0

Summary

Example code that triggers this error with Doctrine DBAL 2.13.0 and ORM 2.8.2:

<?php
$mediaQuery = $em->createQuery('SELECT 1'); 
$mediaIterator = $mediaQuery->toIterable();

Since updating to DBAL 2.13.0, this elicits the following error message:

TypeError Argument 1 passed to Doctrine\ORM\Internal\Hydration\AbstractHydrator::toIterable() must implement interface 
Doctrine\DBAL\Driver\Statement, instance of Doctrine\DBAL\ForwardCompatibility\Result given, called in 
vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php on line 1010

There is no reason to think that this call is deprecated (it does not elicit any sort of warning), and it certainly worked in previous iterations, so I suspect this may be a regression to do with the forwards-compatibility code introduced in 2.13.0.

@derrabus
Copy link
Member

derrabus commented Apr 1, 2021

Same as doctrine/orm#8575

@beberlei
Copy link
Member

beberlei commented Apr 1, 2021

Fixed with ORM 2.8.3

@beberlei beberlei closed this as completed Apr 1, 2021
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants