Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 930859f

Browse files
committed
Fix bug when using ResultCache with Query::toIterable.
Signed-off-by: Warxcell <[email protected]>
1 parent 7f6ed09 commit 930859f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
namespace Doctrine\ORM\Internal\Hydration;
2222

23-
use Doctrine\DBAL\Driver\Statement;
23+
use Doctrine\DBAL\Driver\ResultStatement;
2424
use Doctrine\DBAL\FetchMode;
2525
use Doctrine\DBAL\Platforms\AbstractPlatform;
2626
use Doctrine\DBAL\Types\Type;
@@ -93,7 +93,7 @@ abstract class AbstractHydrator
9393
/**
9494
* The statement that provides the data to hydrate.
9595
*
96-
* @var Statement
96+
* @var ResultStatement
9797
*/
9898
protected $_stmt;
9999

@@ -154,7 +154,7 @@ public function iterate($stmt, $resultSetMapping, array $hints = [])
154154
*
155155
* @return iterable<mixed>
156156
*/
157-
public function toIterable(Statement $stmt, ResultSetMapping $resultSetMapping, array $hints = []): iterable
157+
public function toIterable(ResultStatement $stmt, ResultSetMapping $resultSetMapping, array $hints = []): iterable
158158
{
159159
$this->_stmt = $stmt;
160160
$this->_rsm = $resultSetMapping;

0 commit comments

Comments
 (0)