Skip to content

Commit

Permalink
Merge pull request #22 from eFaqtBV/on-demand-hydration-fix
Browse files Browse the repository at this point in the history
Do not close cursors while using ON_DEMAND hydration
  • Loading branch information
j0k3r authored Jun 17, 2016
2 parents fccdf97 + a73ab58 commit 0564971
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/Doctrine/Hydrator/Graph.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ public function hydrateResultSet($stmt)
} else {
$data = $stmt->fetch(Doctrine_Core::FETCH_ASSOC);
if ( ! $data) {
$stmt->closeCursor();
return $result;
}
}
Expand Down Expand Up @@ -136,7 +135,6 @@ public function hydrateResultSet($stmt)
} else if ($activeRootIdentifier != $id[$rootAlias]) {
// first row for the next record
$this->_priorRow = $data;
$stmt->closeCursor();
return $result;
}
}
Expand Down

0 comments on commit 0564971

Please sign in to comment.