// when compound the array entries are ignored, we need to cascade the configuration here
'empty_data' =>
$options['empty_data'
][$part] ?? null,
];
if ('choice' ===
$options['widget'
]) { $childOptions['choice_translation_domain'
] = false;
$childOptions['choices'
] =
$options[$part];
$childOptions['placeholder'
] =
$options['placeholder'
][$part];
} $childForm =
$builder->
create($part, self::WIDGETS
[$options['widget'
]],
$childOptions);
if ('integer' ===
$options['widget'
]) { $childForm->
addModelTransformer( new ReversedTransformer( new IntegerToLocalizedStringTransformer() ) );
} $builder->
add($childForm);
} } if ($options['with_invert'
]) { $builder->
add('invert', CheckboxType::
class,
[ 'label' =>
$options['labels'
]['invert'
],
'error_bubbling' => true,