Last active
August 29, 2015 14:19
-
-
Save j1cs/37d66347038a99f9c18f to your computer and use it in GitHub Desktop.
repite el proceso a medida que se eliminan tuplas reinicianado el contador
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
for ($i = $start; $i < $end; true) { | |
if ($batch > ($end - $i)) { | |
$batch = ($end - $i); | |
} | |
if ($end !== $companyRepo - > getCountCompanyByAccount($this - > accountId)) { | |
$end = $companyRepo - > getCountCompanyByAccount($this - > accountId); | |
$i = 0; | |
} else { | |
$i += $batch; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment