I've got a problem with a Symfony2 generated CRUD form. (With MongoDB Documents, but I do not think that this is related)
In my controller's createAction() method, when I debug the form result :
$form->isValid() // returns false
$form->getErrors() // returns en empty array(0) {}
So, I do not get anything using form_errors(form)
on my twig template (which seems normal because of $form->getErrors()
empty return)
And the written values are not replaced in the form...
Does anyone has an idea?
See Question&Answers more detail:os