Hey Silverstripers !
Here is the problem:
1 - I’ve create two class object: Labo.php / Contrat.php
Labo.php → $has_one with Member::class and Contrat.php ->has_one with Member::class
2 - In the admin/security/ section, herre is the return:
You can see the “CONTRAT” column is orderable, but not the “LABO” column.
For testing, i’ve try to “play” directly in the SecurityAdmin.php of Silverstripe\Form, with the $memberListConfig = GridFieldConfig_RecordEditor::create()
I’va test the sortable Header:
$memberList->getConfig()->getComponentByType(GridFieldSortableHeader::class)
->setFieldSorting([
‘Labo’ => ‘Labo’
]);
But nothing…
in advance, thanks for your help !