Peer_method in symfony generator generator

I have a symfony module for my class GenericImport. Instead of using the default symfony method for the list page, I want to use GenericImportTable::getQueue(). I thought the following would work, but it is not:

config:
  actions: ~
  fields:
  list:
    peer_method: getQueue

How can I use a custom query for a list page? (I use the Doctrine.)

(To be clear, I don’t want to manually create a completely new custom action. I go along the route that I am going to, because I want to use everything that comes with the admin generator, for example, batch actions, a filter, etc.)

+3
source share

Source: https://habr.com/ru/post/1780943/


All Articles