【发布时间】:2018-07-22 03:03:56
【问题描述】:
我想根据连接的用户显示在列表中。 现在,我的列表显示了所有数据。
我的代码:
protected function configureListFields(ListMapper $listMapper)
{
unset($this->listModes['mosaic']);
$listMapper
/*->addIdentifier('id', null ,[
'header_style' => 'width: 12.5%',
])*/
->add('date', null ,[
'header_style' => 'width: 14.2%',
])
->add("nombreMatch", null ,[
'header_style' => 'width: 14.2%',
])
->add('cote', null ,[
'header_style' => 'width: 14.2%',
])
->add('mise', null ,[
'header_style' => 'width: 14.2%',
])
->add('gain', null ,[
'header_style' => 'width: 14.2%',
])
->add('benefice', null, array('template' => '@SonataAdmin/CRUD/Special/benefice_field_list.html.twig'))
->add('bankroolCourante', null ,[
'header_style' => 'width: 14.2%',
])
;
}
我该怎么做?我希望有人有一个好的解决方案。 感谢您的帮助!
【问题讨论】:
标签: php symfony fosuserbundle sonata