Firebrand\Hail\Extensions\DataObjectExtension
DataObject Extension that handles inline Has One fields
If you add CMS Fields in a DataObject following this syntax: [RELATION][SEPARATOR][FIELDNAME] (Author___Title for example)
This extension will handle writing to the has one relation instead of the current DataObject
Forked from https://github.com/stevie-mayhew/hasoneedit and modified for our module
- Author: Simon Welsh, simon@simon.geek.nz
Synopsis
class DataObjectExtension
extends DataExtension
{
- // constants
- const SEPARATOR = '___';
- // methods
- public void onBeforeWrite()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Constants
Name | Value |
---|---|
SEPARATOR | '___' |