protected function savePackageUpdates(array &$allNewPackages, $packageUpdateServerID) {
// insert updates
$excludedPackagesParameters = $fromversionParameters = $insertParameters = $optionalInserts = $requirementInserts = array();
+ WCF::getDB()->beginTransaction();
foreach ($allNewPackages as $identifier => $packageData) {
// create new database entry
$packageUpdate = PackageUpdateEditor::create(array(
}
}
}
+ WCF::getDB()->commitTransaction();
// save requirements, excluded packages and fromversions
// insert requirements