Commit 7c10f017 authored by Mat's avatar Mat

[résolu] image update, débuggé ->

de l'importance de mettre un getBlockPrefix() !!!
parent f47220c5
......@@ -28,6 +28,7 @@ class ImageController extends MasterAPIController
if ($form->isSubmitted() && $form->isValid())
{
$em->persist($image);
$em->flush();
return $this->api($image);
}
return $this->api($form);
......
......@@ -59,8 +59,14 @@ class ImageType extends AbstractType
$resolver->setDefault('data_class', Image::class);
// Image::class => \TechnoBundle\Entity\Image (2 écritures équivalentes)
}
/**
*
*/
public function getBlockPrefix()
{
return "image";
}
}
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