\AbcGridFieldConfig_RelationEditor
Similar to {@link GridFieldConfig_RecordEditor}, but adds features to work on has-many or many-many relationships.
Allows to search for existing records to add to the relationship,
detach listed records from the relationship (rather than removing them from the database),
and automatically add newly created records to it.
To further configure the field, use ,
for example to change the field to search.
<code>
GridFieldConfig_RelationEditor::create()
->getComponentByType('GridFieldAddExistingAutocompleter')->setSearchFields('MyField');
</code>
Synopsis
class AbcGridFieldConfig_RelationEditor
extends GridFieldConfig_RelationEditor
{
- // methods
- public static GridFieldConfig_RelationEditor create()
- public void __construct()
Hierarchy
Extends
- GridFieldConfig_RelationEditor