i need to create custom export field in Sonata Admin. This field is not a part of the entity.
In entity, I have two dates. In config, I have defined maximum difference between these dates - for example: date1 has to be smaller than date2 + x days (x is defined in config). The export file should contain true, if condition is valid, false otherwise.
I'm not able to create custom method in entity class because parameters are defined in config file.
Is there any possibility to write custom query for export (I am able to write custom query for list or filter action)?