Skip to content

Commit

Permalink
Fix bug when using ResultCache with Query::toIterable.
Browse files Browse the repository at this point in the history
Signed-off-by: Warxcell <warxcell@gmail.com>
  • Loading branch information
Warxcell committed Feb 22, 2021
1 parent 7f6ed09 commit 930859f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php
Expand Up @@ -20,7 +20,7 @@

namespace Doctrine\ORM\Internal\Hydration;

use Doctrine\DBAL\Driver\Statement;
use Doctrine\DBAL\Driver\ResultStatement;
use Doctrine\DBAL\FetchMode;
use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Types\Type;
Expand Down Expand Up @@ -93,7 +93,7 @@ abstract class AbstractHydrator
/**
* The statement that provides the data to hydrate.
*
* @var Statement
* @var ResultStatement
*/
protected $_stmt;

Expand Down Expand Up @@ -154,7 +154,7 @@ public function iterate($stmt, $resultSetMapping, array $hints = [])
*
* @return iterable<mixed>
*/
public function toIterable(Statement $stmt, ResultSetMapping $resultSetMapping, array $hints = []): iterable
public function toIterable(ResultStatement $stmt, ResultSetMapping $resultSetMapping, array $hints = []): iterable
{
$this->_stmt = $stmt;
$this->_rsm = $resultSetMapping;
Expand Down

0 comments on commit 930859f

Please sign in to comment.