cruser_id

cruser_id
Path

$GLOBALS['TCA'][$table]['ctrl']

type

string (field name)

Scope

Proc.

Field name, which is automatically set to the uid of the backend user (uid of the table be_users) who originally created the record. It is never modified again.

By convention the name cruser_id is used for that field.

Examples

The following fields are set by the DataHandler automatically on creating or updating records, if they are configured in the ctrl section of the TCA:

EXT:my_extension/Configuration/TCA/tx_myextension_domain_model_mytable.php
<?php

return [
    'ctrl' => [
        'tstamp' => 'tstamp',
        'crdate' => 'crdate',
        'cruser_id' => 'cruser_id',
        'origUid' => 't3_origuid',
        // ...
    ],
];
Copied!