SilverStripe\Versioned\Versioned::writeToStage
Write the given record to the given stage.
Note: If writing to live, this will write to stage as well.
Signature
public function writeToStage(string
$stage,
[boolean
$forceInsert = false] )
Parameters
$stage
— string$forceInsert
— boolean
Returns
- int
- The ID of the record