web developer blog, fixed developing issues log
Its because PropertyAccessor thinks form is an array. To change it, set form data_class. For example in your form Type:
public function configureOptions(OptionsResolver $resolver)
{
$resolver
->setDefaults([
'data_class' => User::class,
...
Комментариев нет:
Отправить комментарий