Explorar el Código

Ajout méthode OrderShopStore::isFirstOrder()

develop
Guillaume Bourgeois hace 1 mes
padre
commit
42b98f8689
Se han modificado 1 ficheros con 9 adiciones y 0 borrados
  1. +9
    -0
      Repository/Order/OrderShopStore.php

+ 9
- 0
Repository/Order/OrderShopStore.php Ver fichero

return $query->count(); return $query->count();
} }


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

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

Cargando…
Cancelar
Guardar