code: public function sendPasswordResetEmail(UserInterface $user, $subject = 'Password reset request')
      {
          $hashedEntity = $this->createHash($user);
          $this->emailHelper->createAndSendMessageFromTemplate(
              'OrkestraApplicationBundle:Email:setPassword.html.twig',
              array(
                  'user' => $user,
                  'hash' => $hashedEntity->getHash()
              ),
              $subject,
              $user->getEmail()
          );
  
          return $hashedEntity;
      }
docs: Sends password reset message to the user
  
  @param User $user
  @param      $subject
  
  @return HashedEntity