getMessage() !== $this->noMoreRowsErrorMessage) { throw $e; } } return $allRows; } protected function getAllRowsFromEach(BatchQueryResult $each) { $allRows = []; try { foreach ($each as $index => $row) { $allRows[$index] = $row; } } catch (\PDOException $e) { if ($e->getMessage() !== $this->noMoreRowsErrorMessage) { throw $e; } } return $allRows; } }