Symfony2 invalid form without errors

前端 未结 11 836
孤独总比滥情好
孤独总比滥情好 2020-12-01 01:46

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,

11条回答
  •  旧时难觅i
    2020-12-01 02:38

    For Symfony (>= 3.2 - 4), you can use :

    foreach($form->getErrors(true, false) as $er) {
        print_r($er->__toString());
    }
    

    to see the errors obviously.

提交回复
热议问题