I'm searching in Sonata doc but I can't find if it is possible.
I have an Entity Question with one to many relation with Answer.
In my ListMapper for QuestionAdmin, I would like to do something like :
$listMapper
->addIdentifier('title')
->add('countAnswers', IntegerType::class, array(
'action', 'getCountAnswers'
)
);
I know the code below is wtf but I have no idea if this is possible or how to do it ?