protected function updateRecordInDatabase(array $row, $uid = NULL)
{
if (NULL === $uid) {
$uid = $row['uid'];
}
$uid = (int) $uid;
if (FALSE === empty($uid)) {
$row['uid'] = $uid;
$this->workspacesAwareRecordService->update('tt_content', $row);
// reload our record for the next bits to have access to all fields
$row = $this->recordService->getSingle('tt_content', '*', $uid);
}
$versionedRecordUid = (int) (TRUE === isset($row['t3ver_oid']) && 0 < (int) $row['t3ver_oid'] ? $row['t3ver_oid'] : 0);
if (0 < $versionedRecordUid) {
// temporary record; duplicate key values of original record into temporary one.
// Note: will continue to call this method until all temporary records in chain have been processed.
$placeholder = $this->recordService->getSingle('tt_content', '*', $row['t3ver_oid']);
$placeholder['tx_flux_parent'] = (int) $row['tx_flux_parent'];
$placeholder['tx_flux_column'] = $row['tx_flux_column'];
$this->updateRecordInDatabase($placeholder, $row['t3ver_oid']);
}
}