I use Easyadmin bundle for the administrative part of the web-application and I use configuration like this:
easy_admin:
entities:
Payment:
class: AppEntityPayment
controller: AppControllerCompanyController
label: 'payments'
list:
item_permission: ['ROLE_ADMIN','ROLE_COMPANY_OWNER','ROLE_COMPANY_ACCOUNTANT']
actions: ['show', '-delete', '-edit', '-new']
collapse_actions: true
title: 'Payments'
filters:
- { property: 'id', label: 'id' }
- { property: 'type', label: 'type' }
- { property: 'user', label: 'user' }
...
The problem is about I can't set filter via entity relation, like { property: 'user.company', label: 'company' }
, it throws exception that property does not exist or misconfigurated. Does anybody have any idea how to solve this?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…