UpdateUsersPrivacyCommand flushes removed.

This commit is contained in:
Alexey Skobkin 2017-11-06 04:31:43 +03:00
parent 71a6e2add8
commit 5631f1762a
1 changed files with 0 additions and 5 deletions

View File

@ -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();