Moo\HasOneSelector\ORM\DataList
Class DataList is data list to manage add/remove managed object from the HasOneSelectorField class
Synopsis
class DataList
extends DataList
{
- // members
- protected Field $gridField;
- // methods
- public void __construct()
- public void add()
- public void remove()
Hierarchy
Extends
- SilverStripe\ORM\DataList
Members
protected
- $gridField — Moo\HasOneSelector\Form\Field
Methods
public
- __construct() — HasOneSelectorDataList constructor.
- add() — Set the current selected record into the has one relation
- remove() — Clear the record within the has one relation