我一直在尋找一種方法來覆蓋基於主鍵的數據的默認排序。EasyAdminBundle - 「easy_admin.list」下無法識別的選項「排序」
我發現了一些從文檔中排序數據的配置示例,但它不起作用。
它說
無法識別的選項 「排序」 下的 「easy_admin.list」
easy_admin:
entities:
Customer:
class: AppBundle\Entity\Customer
list:
sort: 'name'
form:
title: 'Add Customer'
form_options: {validation_groups:['Default']}
fields:
- name
- {property: 'gender', type: 'choice', type_options:
{
placeholder: 'Select your gender',
choices: {
Female: 'female',
Male: 'male'
}
} }
- {property: 'birthdate', type: 'date', type_options: {widget: 'single_text'}}
- isActive
new:
form_options: {validation_groups: ['Default','Customer']}
edit:
title: 'Edit Customer'
site_name: 'Premiere Sales'
你在哪裏找到例? –