WorkspaceVersionRecordsMigration implements RowUpdaterInterface, LoggerAwareInterface uses LoggerAwareTrait
Migrate all records that have "pid=-1" to their proper equivalents.
t3_wsid=0 AND pid=-1 ---> discarded records or archived records. Since we have no connection to the original anymore, we remove them (hard delete) t3_wsid>0 AND pid=-1 AND t3ver_oid>0 -> find the live version and take the PID from the live version, and replace the PID Since the move pointer (t3ver_state=3) is not affected, as it contains the future live PID, there is no need to touch these records.
This class is only meant to be used within EXT:install and is not part of the TYPO3 Core API.
Table of Contents
Interfaces
- RowUpdaterInterface
- Interface each single row updater must implement.
- LoggerAwareInterface
Methods
- getTitle() : string
- Get a description of this single row updater
- hasPotentialUpdateForTable() : bool
- Return true if this row updater may have updates for given table rows.
- updateTableRow() : array<string|int, mixed>
- Update "pid" field or delete record completely
- fetchPageId() : array<string|int, mixed>|null
Methods
getTitle()
Get a description of this single row updater
public
getTitle() : string
Return values
stringhasPotentialUpdateForTable()
Return true if this row updater may have updates for given table rows.
public
hasPotentialUpdateForTable(string $tableName) : bool
Parameters
- $tableName : string
-
Table name to check
Return values
bool —Return true if a table has workspace enabled
updateTableRow()
Update "pid" field or delete record completely
public
updateTableRow(string $tableName, array<string|int, mixed> $row) : array<string|int, mixed>
Parameters
- $tableName : string
-
Table name
- $row : array<string|int, mixed>
-
Given row data
Return values
array<string|int, mixed> —Modified row data
fetchPageId()
protected
fetchPageId(string $tableName, int $id) : array<string|int, mixed>|null
Parameters
- $tableName : string
- $id : int