Bladeren bron

Finalisation app purcahseOrder

packProduct
Fabien Normand 3 jaren geleden
bovenliggende
commit
de84ab05d4
2 gewijzigde bestanden met toevoegingen van 10 en 1 verwijderingen
  1. +9
    -0
      Controller/Product/ProductFamilyAdminController.php
  2. +1
    -1
      Repository/Order/OrderShopStore.php

+ 9
- 0
Controller/Product/ProductFamilyAdminController.php Bestand weergeven

@@ -2,6 +2,7 @@

namespace Lc\CaracoleBundle\Controller\Product;

use EasyCorp\Bundle\EasyAdminBundle\Config\Crud;
use EasyCorp\Bundle\EasyAdminBundle\Config\KeyValueStore;
use EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext;
use Lc\CaracoleBundle\Container\Order\OrderShopContainer;
@@ -13,6 +14,14 @@ use Symfony\Component\HttpFoundation\Response;

abstract class ProductFamilyAdminController extends AbstractAdminController
{
public function configureCrud(Crud $crud): Crud
{
$crud = parent::configureCrud($crud);

$crud->setDefaultSort(['id' => 'DESC']);

return $crud;
}

public function getRepositoryQuery() :RepositoryQueryInterface
{

+ 1
- 1
Repository/Order/OrderShopStore.php Bestand weergeven

@@ -258,7 +258,7 @@ class OrderShopStore extends AbstractStore
ReductionCartInterface $reductionCart,
$query = null
): int {
$query = $this->createDefaultQuery($query);
$query = $this->createQuery($query);

$query
->selectCount()

Laden…
Annuleren
Opslaan