-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Closed
Labels
Description
class MyType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->add('range', new DateRange(), ['inherit_data' => true']);
}
}
class DateRange extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
->add('from', 'date', ['error_bubbling' => true])
->add('to', 'date', ['error_bubbling' => true]);
}
}
I expect error on from bubbles to parent range field but it bubbles to the root form.