original_string: public function storeResult(Form $form, Result $result)
      {
          $entityManager = $this->container->get('doctrine')->getManager();
          $form->addResult($result);
          $entityManager->persist($form);
          $entityManager->flush();
      }
code: public function storeResult(Form $form, Result $result)
      {
          $entityManager = $this->container->get('doctrine')->getManager();
          $form->addResult($result);
          $entityManager->persist($form);
          $entityManager->flush();
      }
code_tokens: public function storeResult ( Form $ form , Result $ result ) { $ entityManager = $ this -> container -> get ( 'doctrine' ) -> getManager ( ) ; $ form -> addResult ( $ result ) ; $ entityManager -> persist ( $ form ) ; $ entityManager -> flush ( ) ; }
docstring: Stores the user input as a result object.
  
  @param $form
  @param $result
docstring_tokens: Stores the user input as a result object .