Przeglądaj źródła

Merge branch 'develop'

master
Guillaume Bourgeois 1 miesiąc temu
rodzic
commit
6781918471
1 zmienionych plików z 9 dodań i 0 usunięć
  1. +9
    -0
      Repository/Order/OrderShopStore.php

+ 9
- 0
Repository/Order/OrderShopStore.php Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz