我正在尝试使用实体中的名字和姓氏显示全名列。我能怎么做?
这是我的实体和 Admin.php:
class test{
private firstName;
//another properties
private lastName;
}
行政
protected function configureListFields(ListMapper $listMapper){
$listMapper
->add('id',null)
->add('Full name'); //I want to show the column like this (Full name = firstName + lastName)
}