[TYPO3-mvc] updateAction not saving field extending another Model

Jochen Rau jochen.rau at typoplanet.de
Tue Feb 23 11:20:31 CET 2010


> Is the lack of response due to lack of documentation or lack of time?

lack of time

> I think it's problematic that there is models for extending the
> FrontendUser model, but the functionality of adding own
> fields/properties is not present.
>
> I've tried to look through the DataMapper classes but with my (still)
> poor knowledge about MVC it's hard to debug the issues.
>
> Last i found out that my fields where given the following names in the
> DataMapper array (extbase/Classes/Persistence/Mapper/DataMapper.php
> Line 411)
>
>                      [txGroupmembersNumber] =>
> Tx_Extbase_Persistence_Mapper_ColumnMap Object
>                          (
>                              [propertyName:protected] =>  txGroupmembersNumber
>                              [columnName:protected] =>  tx_groupmembers_number

mapping does not work

>> I tried to do the mapping, with the following
>>
>> plugin.tx_groupmembers.persistence.storagePid = 20
>>
>> config.tx_extbase.persistence.classes {
>>         Tx_Groupmembers_Domain_Model_Member {
>>                 mapping {
>>                         tableName = fe_users
>>                 }
>>                 columns {
>>                         tx_groupmembers_number.mapOnProperty = number
>>                 }
>> }

must be (see EXT:extbase/ext_typoscript_setup.txt):

config.tx_extbase.persistence.classes {
         Tx_Groupmembers_Domain_Model_Member {
                 mapping {
                         columns {
                               tx_groupmembers_number.mapOnProperty = number
                         }
                 }
         }
}

Regards
Jochen





More information about the TYPO3-project-typo3v4mvc mailing list