/** * @param ApplicationUserId $userId * @param Account $account */ private function updateUserThirdPartyAccount(ApplicationUserId $userId, Account $account) { $user = $this->finder->find((string) $userId); if (!$user) { return; } $user->setThirdPartyAccount($account); $this->finder->save($user); }