有没有一种简单的方法来设置文本表单字段的默认值?
你可以设置默认值empty_data
empty_data
$builder->add('myField', 'number', ['empty_data' => 'Default value'])