[TYPO3-mvc] persist new records to fe_users
Jonas Götze
jonnsn at gmail.com
Wed Jun 9 11:49:13 CEST 2010
Am 09.06.2010 11:36, schrieb Thomas Mammitzsch:
> Hi list,
>
> i try to add new frontend users to the fe_users table. So i have a model
> class extending Tx_Extbase_Domain_Model_FrontendUser and a repository
> class extending Tx_Extbase_Domain_Repository_FrontendUserRepository.
> If i add my new user to the user repository by my controller, i get an
> exception "Table 'typo.tx_myext_domain_model_frontenduser' doesn't
> exist". Thats right, that table doesn't exist and i dont want it to.
> How can i save the user object to fe_users table? Override something in
> the repository or do some mapping stuff via ts?
>
> regards, Thomas
Hi Thomas,
You have to map your tablename in Setup.txt Typoscript
like this:
plugin.tx_myext{
persistence {
classes {
Tx_Myext_Domain_Model_Frontenduser{
mapping {
tableName = fe_users
}
}
}
}
}
HTH
Regards
Jonas
More information about the TYPO3-project-typo3v4mvc
mailing list