Loading src/Commands/MigrateOrphansCommands.php +2 −2 Original line number Diff line number Diff line Loading @@ -173,7 +173,7 @@ class MigrateOrphansCommands extends MigrateToolsCommands { $deleted = $disabled = FALSE; if (!$dry_run && $options['delete']) { if (!empty($destination->getPluginDefinition()['id'])) { $provider = str_replace('entity:', '', $destination->getPluginDefinition()['id']); $provider = ltrim(stristr($destination->getPluginDefinition()['id'], ':'), ':'); $controller = $this->entityTypeManager->getStorage($provider); if (count($orphans) > 1000) { for ($i = 0; $i <= count($orphans); $i += 1000) { Loading @@ -194,7 +194,7 @@ class MigrateOrphansCommands extends MigrateToolsCommands { else { if (!$dry_run && !$options['delete']) { if (!empty($destination->getPluginDefinition()['id'])) { $provider = str_replace('entity:', '', $destination->getPluginDefinition()['id']); $provider = ltrim(stristr($destination->getPluginDefinition()['id'], ':'), ':'); $controller = $this->entityTypeManager->getStorage($provider); $entities = $controller->loadMultiple($orphans); Loading Loading
src/Commands/MigrateOrphansCommands.php +2 −2 Original line number Diff line number Diff line Loading @@ -173,7 +173,7 @@ class MigrateOrphansCommands extends MigrateToolsCommands { $deleted = $disabled = FALSE; if (!$dry_run && $options['delete']) { if (!empty($destination->getPluginDefinition()['id'])) { $provider = str_replace('entity:', '', $destination->getPluginDefinition()['id']); $provider = ltrim(stristr($destination->getPluginDefinition()['id'], ':'), ':'); $controller = $this->entityTypeManager->getStorage($provider); if (count($orphans) > 1000) { for ($i = 0; $i <= count($orphans); $i += 1000) { Loading @@ -194,7 +194,7 @@ class MigrateOrphansCommands extends MigrateToolsCommands { else { if (!$dry_run && !$options['delete']) { if (!empty($destination->getPluginDefinition()['id'])) { $provider = str_replace('entity:', '', $destination->getPluginDefinition()['id']); $provider = ltrim(stristr($destination->getPluginDefinition()['id'], ':'), ':'); $controller = $this->entityTypeManager->getStorage($provider); $entities = $controller->loadMultiple($orphans); Loading