Bläddra i källkod

Ajout méthode OrderShopStore::isFirstOrder()

develop
Guillaume Bourgeois 1 månad sedan
förälder
incheckning
42b98f8689
1 ändrade filer med 9 tillägg och 0 borttagningar
  1. +9
    -0
      Repository/Order/OrderShopStore.php

+ 9
- 0
Repository/Order/OrderShopStore.php Visa fil

@@ -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,

Laddar…
Avbryt
Spara