Commit 675b30f2 authored by Mat's avatar Mat

Controller: une erreur de persister dans les actions update !!

parent b7cbe17e
......@@ -65,7 +65,6 @@ class AssociationController extends Controller
if ($form->isSubmitted() && $form->isValid())
{
$em->persist($association);
$em->flush();
return $this->redirectToRoute('asso_association_read');
......
......@@ -65,7 +65,6 @@ class MembreController extends Controller
if ($form->isSubmitted() && $form->isValid())
{
$em->persist($membre);
$em->flush();
return $this->redirectToRoute('asso_membre_read');
......
......@@ -5,6 +5,7 @@ namespace TechnoBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use TechnoBundle\Entity\Owner;
use TechnoBundle\Form\Owner\OwnerType;
use APIBundle\Form\Owner\OwnerAPIType;
......@@ -67,7 +68,6 @@ class OwnerController extends MasterController
if ($form->isSubmitted() && $form->isValid())
{
$em->persist($auteur);
$em->flush();
return $this->redirectToRoute('techno_owner_read');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment