[TYPO3-mvc] Extending fe_users

Xavier Perseguers typo3 at perseguers.ch
Wed May 12 15:03:34 CEST 2010


Hi,

> Now, as read in this thread, I added a ext_typoscript_setup.txt file at
> root containing:
>
> config.tx_extbase {
> persistence{
> classes {
> Tx_Extbase_Domain_Model_FrontendUser {
> mapping {
> columns {
> tx_myexta_special_info.mapOnProperty = specialInfo;
> }
> }
> }
> }
> }
> }
>
> But this property does not get populated when retrieving users through
> extB's UserRepository.
>
> What is missing?

After trying with Extbase trunk, single table inheritance and all stuff, 
it started to work with this configuration instead:

plugin.tx_myextB {
     persistence {
         classes {
             Tx_Extbase_Domain_Model_FrontendUser {
                 subclasses {
                     Tx_Myextb_Domain_Model_User = 
Tx_Myextb_Domain_Model_User
                 }
             }
             Tx_Myextb_Domain_Model_User {
                 mapping {
                     tableName = fe_users
                     # No type filter => return all rows from fe_users
                     #recordType = Tx_Myextb_Domain_Model_User
                     columns {
                         tx_myexta_special_info.mapOnProperty = specialInfo
                     }
                 }
             }
         }
     }
}

And this works too with Extbase from TYPO3 4.3.3.

Xavier Perseguers


More information about the TYPO3-project-typo3v4mvc mailing list