} | } | ||||
// getUserMerchant | // getUserMerchant | ||||
public function getOneByUser(UserInterface $user, $query = null): UserMerchantInterface | |||||
public function getOneByUser(UserInterface $user, $query = null): ?UserMerchantInterface | |||||
{ | { | ||||
$query = $this->createDefaultQuery($query); | $query = $this->createDefaultQuery($query); | ||||
$query->filterByUser($user); | $query->filterByUser($user); |