SONATA_TYPE_MODEL_AUTOCOMPLETE 无效
SONATA_TYPE_MODEL_AUTOCOMPLETE does not work
与 sonata Admin bundle dev-master 的关系,比如 Many Vote 只能链接到一个 PollingStation,因为 PollingStation 实体的数量太多(超过 40000)我必须使用 SONATA_TYPE_MODEL_AUTOCOMPLETE(如果您认为它存在,请提出任何最佳方法)但是在 official documentation 中设置 configureFormFields 之后,我收到以下错误:
Notice: Undefined index: read_only
$builder->setAttribute('minimum_input_length', $options['minimum_input_length']);
$builder->setAttribute('items_per_page', $options['items_per_page']);
$builder->setAttribute('req_param_name_page_number', $options['req_param_name_page_number']);
$builder->setAttribute('disabled', $options['disabled'] || $options['read_only']);
$builder->setAttribute('to_string_callback', $options['to_string_callback']);
奏鸣曲项目的贡献者很久以前就解决了这个问题,所以就这样做:
composer udpate
与 sonata Admin bundle dev-master 的关系,比如 Many Vote 只能链接到一个 PollingStation,因为 PollingStation 实体的数量太多(超过 40000)我必须使用 SONATA_TYPE_MODEL_AUTOCOMPLETE(如果您认为它存在,请提出任何最佳方法)但是在 official documentation 中设置 configureFormFields 之后,我收到以下错误:
Notice: Undefined index: read_only
$builder->setAttribute('minimum_input_length', $options['minimum_input_length']);
$builder->setAttribute('items_per_page', $options['items_per_page']);
$builder->setAttribute('req_param_name_page_number', $options['req_param_name_page_number']);
$builder->setAttribute('disabled', $options['disabled'] || $options['read_only']);
$builder->setAttribute('to_string_callback', $options['to_string_callback']);
奏鸣曲项目的贡献者很久以前就解决了这个问题,所以就这样做:
composer udpate