瀏覽代碼

Ajout méthode OrderShopStore::isFirstOrder()

develop
Guillaume Bourgeois 1 月之前
父節點
當前提交
42b98f8689
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. +9
    -0
      Repository/Order/OrderShopStore.php

+ 9
- 0
Repository/Order/OrderShopStore.php 查看文件

@@ -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…
取消
儲存