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