Test if a given NodeData is in the set of removed node data objects
public isInRemovedNodes ( |
||
$nodeData | ||
리턴 | boolean | TRUE If the NodeData was marked for removal |
/** * Execute the migration * * @return void */ public function execute() { foreach ($this->nodeDataRepository->findAll() as $node) { foreach ($this->configuration as $migrationDescription) { if ($this->nodeFilterService->matchFilters($node, $migrationDescription['filters'])) { $this->nodeTransformationService->execute($node, $migrationDescription['transformations']); if (!$this->nodeDataRepository->isInRemovedNodes($node)) { $this->nodeDataRepository->update($node); } } } } }