[TYPO3-mvc] table mapping not working
Sebastian Schreiber
me at schreibersebastian.de
Wed Oct 3 10:24:24 CEST 2012
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