From 14661c223320f89a7383cd35a7b9ce8eb59ba571 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Wed, 11 Dec 2019 15:17:38 +0300 Subject: [PATCH] Fix manual-migrate command --- console/controllers/ManualMigrateController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/console/controllers/ManualMigrateController.php b/console/controllers/ManualMigrateController.php index 6dcaf6e..10b1b29 100644 --- a/console/controllers/ManualMigrateController.php +++ b/console/controllers/ManualMigrateController.php @@ -24,7 +24,7 @@ class ManualMigrateController extends Controller { return (int)explode(':', $key)[2]; }, $keys); /** @var OauthSession[] $sessions */ - $sessions = OauthSession::find()->andWhere(['legacy_id' => $sessionsIds]); + $sessions = OauthSession::find()->andWhere(['legacy_id' => $sessionsIds])->all(); foreach ($sessions as $session) { if (empty($session->scopes)) { $session->scopes = Yii::$app->redis->smembers("oauth:sessions:{$session->legacy_id}:scopes");