Sfoglia il codice sorgente

Ajout méthode OrderShopStore::isFirstOrder()

develop
Guillaume Bourgeois 1 mese fa
parent
commit
42b98f8689
1 ha cambiato i file con 9 aggiunte e 0 eliminazioni
  1. +9
    -0
      Repository/Order/OrderShopStore.php

+ 9
- 0
Repository/Order/OrderShopStore.php Vedi File

@@ -311,6 +311,15 @@ class OrderShopStore extends AbstractStore
return $query->count();
}

public function isFirstOrder(UserInterface $user): bool
{
return $this->countBy([
'user' => $user,
'isValid' => true,
'excludeComplementaryOrderShops' => false
]) == 1;
}

// findCartCurrent
public function getOneCartCurrent(
UserInterface $user = null,

Loading…
Annulla
Salva