UpdateUsersPrivacyCommand flushes removed.
This commit is contained in:
parent
71a6e2add8
commit
5631f1762a
|
@ -100,11 +100,6 @@ class UpdateUsersPrivacyCommand extends Command
|
||||||
$this->logger->info('Processing @'.$user->getLogin());
|
$this->logger->info('Processing @'.$user->getLogin());
|
||||||
|
|
||||||
$this->updateUser($user);
|
$this->updateUser($user);
|
||||||
|
|
||||||
// Flushing each 10 users
|
|
||||||
if (0 === $idx % 10) {
|
|
||||||
$this->em->flush();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->progress->finish();
|
$this->progress->finish();
|
||||||
|
|
Loading…
Reference in a new issue