MetaModels\DcGeneral\Data\Driver::saveVersion PHP Method

saveVersion() public method

Save a new Version of a record.
public saveVersion ( ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $objModel, string $strUsername ) : void
$objModel ContaoCommunityAlliance\DcGeneral\Data\ModelInterface The model to be saved.
$strUsername string The username that creates the new version.
return void
    public function saveVersion(ModelInterface $objModel, $strUsername)
    {
        throw new \RuntimeException('Versioning not supported in MetaModels so far.');
    }