From 1ae1f431189da1897bd71fd9b98301eab6c86939 Mon Sep 17 00:00:00 2001 From: stes Date: Tue, 22 Aug 2017 17:49:01 +0300 Subject: [PATCH] bug fix test t12 --- controllers/VariantCountController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/VariantCountController.php b/controllers/VariantCountController.php index 3e94d4a..20d767c 100644 --- a/controllers/VariantCountController.php +++ b/controllers/VariantCountController.php @@ -233,7 +233,7 @@ if (!is_null($q)) { $not = VariantToShop::find() ->select('variant_id') - ->where([ 'shop_id' => $shop_id ]); + ->where([ 'shop_id' => $shop_id ])->asArray()->all(); $out[ 'results' ] = Variant::find() ->select( [ @@ -248,7 +248,7 @@ $q, ] ) - ->where( + ->andWhere( [ 'NOT IN', 'variant.id', -- libgit2 0.21.4