SilverStripe\Versioned\Versioned::copyVersionToStage
Move a database record from one stage to the other.
Signature
public function copyVersionToStage(int|string|null
$fromStage,
string
$toStage,
[boolean
$createNewVersion = true] )
Parameters
$fromStage
—
object
- Place to copy from. Can be either a stage name or a version number.
Null copies current object to stage
$toStage
—
string
- Place to copy to. Must be a stage name.
$createNewVersion
—
boolean
- [DEPRECATED] This parameter is ignored, as copying to stage should always
create a new version.