getId()} -> {$targetEntity->getId()}..." . PHP_EOL; $cloner = new ModuleCloner($sourceEntity, $targetEntity); $cloner->clone(); echo "Success: Module cloned successfully." . PHP_EOL; } catch (Throwable $e) { echo "Critical Error: " . $e->getMessage() . PHP_EOL; exit(1); }