SilverStripe\MultiForm\Extensions\MultiFormObjectDecorator
Decorate {@link DataObject}s which are required to be saved to the database directly by a {@link MultiFormStep}.
Only needed for objects which aren't stored in the session,
which is the default.
This decorator also augments get() requests to the datalayer
by automatically filtering out temporary objects.
You can override this filter by putting the following statement
in your WHERE clause:
`<MyDataObjectClass>`.`MultiFormIsTemporary` = 1
Synopsis
class MultiFormObjectDecorator
extends DataExtension
{
- // methods
- public void augmentSQL()
- protected boolean wantsTemporary()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Members
private
- $db
- $has_one
Methods
protected
- wantsTemporary() — Determines if the current query is supposed to be exempt from the automatic filtering out of temporary records.
public
- augmentSQL() — Augment any queries to MultiFormObjectDecorator and only return anything that isn't considered temporary.