From 5631f1762a3d40897752ba19420b2d096b82142d Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Mon, 6 Nov 2017 04:31:43 +0300 Subject: [PATCH] UpdateUsersPrivacyCommand flushes removed. --- .../PointToolsBundle/Command/UpdateUsersPrivacyCommand.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Skobkin/Bundle/PointToolsBundle/Command/UpdateUsersPrivacyCommand.php b/src/Skobkin/Bundle/PointToolsBundle/Command/UpdateUsersPrivacyCommand.php index 7ea7b62..690833a 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/Command/UpdateUsersPrivacyCommand.php +++ b/src/Skobkin/Bundle/PointToolsBundle/Command/UpdateUsersPrivacyCommand.php @@ -100,11 +100,6 @@ class UpdateUsersPrivacyCommand extends Command $this->logger->info('Processing @'.$user->getLogin()); $this->updateUser($user); - - // Flushing each 10 users - if (0 === $idx % 10) { - $this->em->flush(); - } } $this->progress->finish();