在管理类中:
protected function configureFormFields(FormMapper $formMapper) {
$formMapper
->add('name', 'text')
->add('description', 'text')
;
}
Run Code Online (Sandbox Code Playgroud)
我不知道在"名字"添加javascript之前我怎么能,你能帮助我吗?