SilverStripe\Versioned\Versioned::augmentWriteVersioned
Generates a ($table)_version DB manipulation and injects it into the current $manipulation
Signature
protected function augmentWriteVersioned(array&
$manipulation,
string
$class,
string
$table,
int
$recordID,
array|string
$stages,
[boolean
$isDelete = false] )
Parameters
$manipulation
—
array
- Source manipulation data
$class
—
string
- Class
$table
—
string
- Table Table for this class
$recordID
—
int
- ID of record to version
$stages
—
object
- Stage or array of affected stages
$isDelete
—
boolean
- Set to true of version is created from a deletion