concrete/src/User/Login/LoginAttemptService.php
private function manageBatch(array $batch, $max = 0)
    {
        if (count($batch) >= $max) {
            $this->entityManager->flush();
            $batch = [];
        }

        return $batch;
    }
private function manageBatch(array $batch, $max = 0)
    {
        if (count($batch) >= $max) {
            $this->entityManager->flush();
            $batch = [];
        }

        return $batch;
    }
private function manageBatch ( array $ batch , $ max = 0 ) { if ( count ( $ batch ) >= $ max ) { $ this -> entityManager -> flush ( ) ; $ batch = [ ] ; } return $ batch ; }
Manage a batched ORM operation

@param array $batch
@param int $max

@return array
Manage a batched ORM operation