Sonata Admin configureListFields
问题 is it possible to make a custom query in sonataadmin in configureListFields ? . in this function : protected function configureListFields(ListMapper $listMapper) { $listMapper ->>add(.... ; } thank you ! 回答1: You should override createQuery method like this (source): public function createQuery($context = 'list') { $query = parent::createQuery($context); // this is the queryproxy, you can call anything you could call on the doctrine orm QueryBuilder $query->andWhere( $query->expr()->eq($query