core-bundle/src/Resources/contao/library/Contao/Controller.php
protected function createNewVersion($strTable, $intId)
	{
		@trigger_error('Using Controller::createNewVersion() has been deprecated and will no longer work in Contao 5.0. Use Versions->create() instead.', E_USER_DEPRECATED);

		$objVersions = new Versions($strTable, $intId);
		$objVersions->create();
	}
protected function createNewVersion($strTable, $intId)
	{
		@trigger_error('Using Controller::createNewVersion() has been deprecated and will no longer work in Contao 5.0. Use Versions->create() instead.', E_USER_DEPRECATED);

		$objVersions = new Versions($strTable, $intId);
		$objVersions->create();
	}
Create a new version of a record

@param string  $strTable The table name
@param integer $intId    The ID of the element to be versioned

@deprecated Deprecated since Contao 4.0, to be removed in Contao 5.0.
Use Versions->create() instead.