错误冒泡Symfony2中集合上的错误仍以父窗体显示

错误冒泡Symfony2中集合上的错误仍以父窗体显示,symfony,symfony-forms,Symfony,Symfony Forms,在过去的几个小时或几天里,我一直试图消除冒泡的错误,但我就是不明白为什么错误会保留在父窗体类型中 ->add('merchantAccounts', 'collection', array( 'type' => new MerchantAccountType(), 'allow_add' => true, 'allow_delete' => true, 'by_reference' =>

在过去的几个小时或几天里,我一直试图消除冒泡的错误,但我就是不明白为什么错误会保留在父窗体类型中

->add('merchantAccounts', 'collection', array(
     'type'          =>  new MerchantAccountType(),
     'allow_add'     =>  true,
     'allow_delete'  =>  true,
     'by_reference'  =>  false,
     'error_bubbling' => false,
我已经添加了错误\u冒泡几乎任何其他可能的地方,仍然没有什么

这里还有一个验证冲突,显示在父表单类型中,第一个参数什么也不做。 MerchantNumber是MerchantAccountType中的字段

$this->context->addViolationAt('merchantNumber', 'error.invalid_bank');
$resolver->setDefaults(array(
        'data_class' => 'Acme\MyBundle\Entity\Merchant',
        'error_bubbling' => false
));
以及调用MerchantAccountType的FormType

$this->context->addViolationAt('merchantNumber', 'error.invalid_bank');
$resolver->setDefaults(array(
        'data_class' => 'Acme\MyBundle\Entity\Merchant',
        'error_bubbling' => false
));
任何帮助都将不胜感激:)谢谢

好的

我终于找到了问题的根源。我运行的是PHP5.3.5。 我安装了5.3.10,现在终于可以工作了

所以在5.3.6和5.3.10之间发生了一些神奇的事情

希望有一天这能帮助别人