Skip to content

Commit

Permalink
Merge pull request #7742 from bocharsky-bw/patch-1
Browse files Browse the repository at this point in the history
Start i var from 1 instead of 0
  • Loading branch information
greg0ire authored Sep 28, 2019
2 parents ca38249 + 5612790 commit 167cb44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/en/reference/batch-processing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ with the batching strategy that was already used for bulk inserts:
<?php
$batchSize = 20;
$i = 0;
$i = 1;
$q = $em->createQuery('select u from MyProject\Model\User u');
$iterableResult = $q->iterate();
foreach ($iterableResult as $row) {
Expand Down Expand Up @@ -136,7 +136,7 @@ The following example shows how to do this:
<?php
$batchSize = 20;
$i = 0;
$i = 1;
$q = $em->createQuery('select u from MyProject\Model\User u');
$iterableResult = $q->iterate();
while (($row = $iterableResult->next()) !== false) {
Expand Down

0 comments on commit 167cb44

Please sign in to comment.