[TYPO3-mvc] updateAction not saving field extending another Model
Søren Malling
soren.malling at gmail.com
Tue Feb 23 11:52:49 CET 2010
Thanks Jochen!
It's all written down in my own small notes now, I will rewrite them
at the end of this project to share.
Once again, thanks!
Mvh.
Søren
On Tue, Feb 23, 2010 at 11:20 AM, Jochen Rau <jochen.rau at typoplanet.de> wrote:
>> 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
>
>
>
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>
--
Officially Certified TYPO3 Integrator
More information about the TYPO3-project-typo3v4mvc
mailing list