Ejemplo n.º 1
0
 public function createAction()
 {
     $test = new Tests();
     $test->setTestName('First test');
     $test->setPublished(true);
     $em = $this->getDoctrine()->getEntityManager();
     $em->persist($test);
     $em->flush();
     return new Response('Created new test ' . $test->getTestName());
 }