$productsQuery = Product::find()->joinWith('values')
->andWhere(['product.category_id' => $category->id])
->andWhere(['like', 'value.value', '%'.$size])
->andWhere(['value.attribute_id'=>$sizeAttr['id']])->all();