[TYPO3-mvc] table mapping not working
Stephen Bungert
stephenbungert at yahoo.de
Tue Oct 2 22:22:53 CEST 2012
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
More information about the TYPO3-project-typo3v4mvc
mailing list