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

@param $form
@param $result
Stores the user input as a result object .