diff --git a/common/modules/product/models/ProductQuery.php b/common/modules/product/models/ProductQuery.php deleted file mode 100755 index b5cf18c..0000000 --- a/common/modules/product/models/ProductQuery.php +++ /dev/null @@ -1,45 +0,0 @@ -andWhere('[[status]]=1'); - }*/ - - /** - * @inheritdoc - * @return Product[]|array - */ - public function all($db = null) - { - return parent::all($db); - } - - /** - * @inheritdoc - * @return Product|array|null - */ - public function one($db = null) - { - return parent::one($db); - } - - /** - * Select category by alias - * @param $slug - * @return $this - */ - public function byAlias($alias) - { - $this->andFilterWhere(['alias' => $alias]); - return $this; - } -} diff --git a/common/modules/product/models/ProductVariantQuery.php b/common/modules/product/models/ProductVariantQuery.php deleted file mode 100755 index 011164c..0000000 --- a/common/modules/product/models/ProductVariantQuery.php +++ /dev/null @@ -1,34 +0,0 @@ -andWhere('[[status]]=1'); - }*/ - - /** - * @inheritdoc - * @return ProductVariant[]|array - */ - public function all($db = null) - { - return parent::all($db); - } - - /** - * @inheritdoc - * @return ProductVariant|array|null - */ - public function one($db = null) - { - return parent::one($db); - } -} diff --git a/frontend/controllers/CatalogController.php b/frontend/controllers/CatalogController.php index 2396035..f1440e3 100755 --- a/frontend/controllers/CatalogController.php +++ b/frontend/controllers/CatalogController.php @@ -125,8 +125,10 @@ class CatalogController extends \yii\web\Controller */ $query = $productProvider->query; $query->with([ + 'images', 'events', 'variant', + 'variant.image', 'comments', 'averageRating', ]); -- libgit2 0.21.4