src/PHPDish/Bundle/PaymentBundle/Service/WalletManager.php
public function getUserWallet(UserInterface $user)
    {
        $wallet = $this->getWalletRepository()->findOneBy([
            'user' => $user
        ]);
        if (!$wallet) {
            $wallet = $this->createWallet($user);
            $this->saveWallet($wallet);
        }
        $wallet->setUser($user);
        return $wallet;
    }
public function getUserWallet(UserInterface $user)
    {
        $wallet = $this->getWalletRepository()->findOneBy([
            'user' => $user
        ]);
        if (!$wallet) {
            $wallet = $this->createWallet($user);
            $this->saveWallet($wallet);
        }
        $wallet->setUser($user);
        return $wallet;
    }
{@inheritdoc}