[TYPO3-mvc] table mapping not working

Stephen Bungert stephenbungert at yahoo.de
Wed Oct 3 11:23:42 CEST 2012


yes, I have.

I think it is because the action is called via ajax.

dependency injection doesn't work, I have to use t3lib_div to create a 
repository and there are no settings.

maunuallly writing a findByUid function works, I was rather hoping to use 
the inbuilt find* functions though.


"Sebastian Schreiber" <me at schreibersebastian.de> schrieb im Newsbeitrag 
news:mailman.254.1349252670.598.typo3-project-typo3v4mvc at lists.typo3.org...
> did you add your typoscript template to the root page or any other page?
>
> Everything else seems to be right at a first glimpse.
>
> Am 02.10.2012 22:22, schrieb Stephen Bungert:
>> I'm trying to get table records in a BE module via ajax.
>>
>> For some reason my repository is not mapping the table correctly. This is 
>> what i see in the ajax answer:
>>
>> ... snipped
>>
>> Table 'typo3_4-6.tx_sbportfolio2_domain_model_beimport' doesn't exist
>>
>> snipped ...
>>
>> Tx_SbPortfolio2_Domain_Model_BeImport is my model name. There are no 
>> tables, I have mapped Tx_SbPortfolio2_Domain_Model_BeImport to another 
>> table:
>>
>> ---
>> # Module configuration
>> module.tx_sbportfolio2 {
>> persistence {
>>  storagePid = 15
>>
>>     classes {
>>       Tx_SbPortfolio2_Domain_Model_BeImport {
>>         mapping {
>>           tableName = tx_sbportfolio_items
>>           columns {
>>             title.mapOnProperty = title
>>             crdate.mapOnProperty = crdate
>>             tstamp.mapOnProperty = tstamp
>>           }
>>         }
>>       }
>>     }
>> }
>> view {
>>  templateRootPath = {$module.tx_sbportfolio2.view.templateRootPath}
>>  partialRootPath = {$module.tx_sbportfolio2.view.partialRootPath}
>>  layoutRootPath = {$module.tx_sbportfolio2.view.layoutRootPath}
>> }
>> }
>> ---
>>
>> Why isn't my tableName used, do I need to do anything else?
>>
>> -- 
>> Stephen
>> _______________________________________________
>> TYPO3-project-typo3v4mvc mailing list
>> TYPO3-project-typo3v4mvc at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>
>
> -- 
> Sebastian Schreiber
> (Medieninformatiker B.Sc.)
> (TYPO3 Certified Integrator)
>
> Schanzenstraße 27, Schlosserei 4
> D-51063 Köln
>
> T  0221 677 88 541
> M  0176 431 05 790
>
> Skype schreibersebastian.de
>
> me at schreibersebastian.de
> www.schreibersebastian.de
>
> Steuernummer: 217 / 5269 / 4675
> 



More information about the TYPO3-project-typo3v4mvc mailing list