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