[TYPO3-german] crdate von fe_users auslesen
Deus
master_hax at gmx.net
Mon Aug 31 09:10:25 CEST 2015
Hallo.
Ich habe eine Extension erstellt (ist schon etwas älter), die die Tabelle fe_users erweitert.
Das Model habe ich von Tx_Extbase_Domain_Model_FrontendUser abgeleitet.
Ich möchte nun gerne das crdate des Users auslesen.
Dazu habe ich das Model entsprechend erweitert:
/**
* Erstelldatum
*
* @var DateTime
*/
protected $crdate;
/**
* Returns the crdate
*
* @return DateTime $crdate
*/
public function getCrdate() {
return $this->crdate;
}
Ebenso habe ich das TCA erweitert:
## EXTENSION BUILDER DEFAULTS END TOKEN - Everything BEFORE this line is overwritten with the defaults of the extension builder
$TCA['tx_kbs_domain_model_user_account']['columns']['crdate'] = Array (
'exclude' => 1,
'label' => 'Creation date',
'config' => Array (
'type' => 'none',
'format' => 'date',
'eval' => 'date',
)
);
Dennoch bekomme ich das crdate nicht zurück, sondern ein leeres Objekt.
Hat jemand eine Idee, was ich noch falsch mache?
Danke,
lg
More information about the TYPO3-german
mailing list