In ext_localconf.php den Proxy registrieren:
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Object\Container\Container::class)
->registerImplementation(\[ext-vendor-ucc]\[ext-ext-ucc]\Domain\Model\[model-ucc]::class, \[vendor-ucc]\[ext-ucc]\Domain\Model\[model-ucc]::class);
In Configuration/Extbase/Persistence/Classes.php die Klassen mappen:
[
'tableName' => 'tx_[ext-ext-lower]_domain_model_[model-lower]',
'recordType' => \[ext-vendor-ucc]\[ext-ext-ucc]\Domain\Model\[model-ucc]::class,
],
];
In ext_tables.sql Feld in Datenbank registrieren:
CREATE TABLE tx_[ext-ext-lower]_domain_model_[model-lower] (
[field-lower] varchar(255) DEFAULT '' NOT NULL
);
In Configuration/TCA/Overrides/tx_[ext-ext-lower]_domain_model_[model-lower].php Feld im TCA registrieren:
[
'exclude' => 1,
'label' => 'Titel',
'config' => [
'type' => 'input',
'size' => 15
],
]
];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns(
'tx_[ext-ext-lower]_domain_model_[model-lower]', $tmpColumns
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes(
'tx_[ext-ext-lower]_domain_model_[model-lower]',
'--linebreak--,' . join(',', array_keys($tmpColumns)),
'',
'after:title'
);
In Classes/Domain/Model/[model-ucc].php Model mit Getter / Setter definieren
[field-lower-ucc];
}
/**
* @param string $[field-lower-ucc]
*/
public function set[field-ucc]($[field-lower-ucc]) {
$this->[field-lower-ucc] = $[field-lower-ucc];
}
}
Classes/Domain/Repository/[model-ucc]Repository.php Repository definieren (optional)