|
@@ -60,7 +60,6 @@ class RealisateurController extends Controller
|
|
|
if ($form->isSubmitted() && $form->isValid())
|
|
|
{
|
|
|
$em = $this->getDoctrine()->getManager();
|
|
|
- $realisateur = $form->getData();
|
|
|
$em->flush();
|
|
|
$this->addFlash('success', 'Le réalisateur a été modifié');
|
|
|
return $this->redirectToRoute('realisateur_liste');
|
|
@@ -68,7 +67,8 @@ class RealisateurController extends Controller
|
|
|
|
|
|
|
|
|
return $this->render('@App/realisateur/modifier.html.twig', array(
|
|
|
- 'form' => $form->createView()
|
|
|
+ 'form' => $form->createView(),
|
|
|
+ 'realisateur' => $realisateur
|
|
|
));
|
|
|
}
|
|
|
|