/** * @param string $documentName * @param string $idKey * @param string $destinationName * @return void */ protected function processDeletedRecords($documentName, $idKey, $destinationName) { while (!empty($items = $this->source->getDeletedRecords($documentName, $idKey))) { $this->destination->deleteRecords($this->destination->addDocumentPrefix($destinationName), $idKey, $items); $documentNameDelta = $this->source->getDeltaLogName($documentName); $documentNameDelta = $this->source->addDocumentPrefix($documentNameDelta); $this->markRecordsProcessed($documentNameDelta, $idKey, $items); } }