From 71a6e2add803783a7e91e331f67c4eb61f0e4625 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Mon, 6 Nov 2017 03:26:10 +0300 Subject: [PATCH] Telegram WebHook logger injection fix. --- .../PointToolsBundle/Command/UpdateSubscriptionsCommand.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Skobkin/Bundle/PointToolsBundle/Command/UpdateSubscriptionsCommand.php b/src/Skobkin/Bundle/PointToolsBundle/Command/UpdateSubscriptionsCommand.php index f90555b..e8e3e1c 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/Command/UpdateSubscriptionsCommand.php +++ b/src/Skobkin/Bundle/PointToolsBundle/Command/UpdateSubscriptionsCommand.php @@ -94,7 +94,7 @@ class UpdateSubscriptionsCommand extends Command $this->progress = new ProgressBar($output); $this->progress->setFormat('debug'); - if ($input->getOption('check-only')) { // Beginning transaction for all changes + if (!$input->getOption('check-only')) { // Beginning transaction for all changes $this->em->beginTransaction(); } @@ -126,8 +126,8 @@ class UpdateSubscriptionsCommand extends Command $this->progress->finish(); - - if ($input->getOption('check-only')) { // Flushing all changes at once to the database + // Flushing all changes at once to the database + if (!$input->getOption('check-only')) { $this->em->flush(); $this->em->commit(); }