]> _ Git - pmi.git/commitdiff
wip #3322 @0:05
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 9 Jan 2020 16:45:53 +0000 (17:45 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 9 Jan 2020 16:45:53 +0000 (17:45 +0100)
app/Templates/Catalog.php
app/Templates/News.php
app/Templates/Solution.php

index 19aea1b84b89efa2d53ec1abfc90077f78b49d11..36cdcbc3e99593ffef9d0e1b1f9df8c2b9ef7be9 100644 (file)
@@ -28,10 +28,10 @@ class Catalog extends TemplateAbstract
 
         Debugbar::startMeasure('nav_catalog_models', 'Request catalog models');
         Debugbar::startMeasure('nav_catalog_models_types', 'Request catalog models (types)');
-        $productTypes = ProductType::whereVariant($menu->getVariant())->all();
+        $productTypes = ProductType::whereVariant($menu->getVariant())->get();
         Debugbar::stopMeasure('nav_catalog_models_types');
         Debugbar::startMeasure('nav_catalog_models_products', 'Request catalog models (products)');
-        $products = Product::whereVariant($menu->getVariant())->all();
+        $products = Product::whereVariant($menu->getVariant())->get();
         Debugbar::stopMeasure('nav_catalog_models_products');
         Debugbar::stopMeasure('nav_catalog_models');
 
index fb24fbe93dc0fd62753651c552ecef5ff08dc17d..a16a6ebac79f452dd441fc5f7da9ddca976ce48c 100644 (file)
@@ -19,7 +19,7 @@ class News extends Base
         Debugbar::startMeasure('nav_news', 'Make news nav items');
         parent::setMenuChildren($menu);
 
-        $news = NewsModel::whereVariant()->all();
+        $news = NewsModel::whereVariant()->get();
 
         foreach ($news as $newsItem) {
 
index a4d54c213f8137f55c0f371ec96afaea17aba1be..1026d93f29f9315b436b5e8a1df74bccfbae7e40 100644 (file)
@@ -34,7 +34,7 @@ class Solution extends Base
         Debugbar::startMeasure('nav_applications', 'Make applications nav items');
         parent::setMenuChildren($menu);
 
-        $applications = Application::whereVariant($menu->getVariant())->all();
+        $applications = Application::whereVariant($menu->getVariant())->get();
 
         $solution_apps = $menu->getPageData()->get('applications');
         if (null === $solution_apps || !$solution_apps) {