Skip to content

Commit

Permalink
Fix bug when using ResultCache with Query::toIterable.
Browse files Browse the repository at this point in the history
  • Loading branch information
Warxcell committed Feb 21, 2021
1 parent 7f6ed09 commit a81aff0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php
Expand Up @@ -20,6 +20,7 @@

namespace Doctrine\ORM\Internal\Hydration;

use Doctrine\DBAL\Driver\ResultStatement;
use Doctrine\DBAL\Driver\Statement;
use Doctrine\DBAL\FetchMode;
use Doctrine\DBAL\Platforms\AbstractPlatform;
Expand Down Expand Up @@ -154,7 +155,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 a81aff0

Please sign in to comment.