我为注册表创建了一个FormType。验证的工作方式应该是这样的。奇怪的是:错误会立即打印出来。当显示时(在页面加载时),表单立即告诉我某些字段无效,尽管那时我还没有开始填写这些字段。我的formtype类:namespace MyBundle\Form;
use Symfony\Component\Form\FormBuilder;
use Symfony<
v1.15.1 Twig, the flexible, fast, and secure template language for PHP$builder->add('pictureFile', 'file', array('label' => 'Image File'));Catchable fatal err