From d7b193f2e7b8ee1f144821faf52c122767dea848 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Tue, 4 Apr 2017 14:19:24 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=BF=D1=82=D0=B8=D0=BC=D0=B8=D0=B7?= =?UTF-8?q?=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=BE=20=D0=BF=D0=BE=D1=82?= =?UTF-8?q?=D1=80=D0=B5=D0=B1=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BF=D0=B0?= =?UTF-8?q?=D0=BC=D1=8F=D1=82=D0=B8=20=D0=B4=D0=BB=D1=8F=20=D0=B2=D1=8B?= =?UTF-8?q?=D0=B1=D0=BE=D1=80=D0=BA=D0=B8=20email=5Factions=20=D0=BD=D0=B0?= =?UTF-8?q?=20=D0=B7=D0=B0=D1=87=D0=B8=D1=81=D1=82=D0=BA=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- console/controllers/CleanupController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/console/controllers/CleanupController.php b/console/controllers/CleanupController.php index 33e9293..9284479 100644 --- a/console/controllers/CleanupController.php +++ b/console/controllers/CleanupController.php @@ -17,8 +17,8 @@ class CleanupController extends Controller { ]; } - /** @var EmailActivation[] $expiredEmails */ - $expiredEmails = $query->andWhere($conditions)->all(); + /** @var \yii\db\BatchQueryResult|EmailActivation[] $expiredEmails */ + $expiredEmails = $query->andWhere($conditions)->each(); foreach ($expiredEmails as $email) { $email->delete(); }