[TYPO3-mvc] table mapping issues

Franz Koch typo3.RemoveForMessage at elements-net.de
Tue Aug 31 09:19:50 CEST 2010


Hey,

> i try to map a model to the dam table:
>
> config.tx_extbase.persistence.classes {
> Tx_Cdebayarticles_Domain_Model_Dam.mapping {
> tablename = tx_dam
> recordType = Tx_Cdebayarticles_Domain_Model_Dam
> }
> }

a recordType doesn't help in that case - you first have to bind your 
className to the tableName of DAM:

config.tx_extbase.persistence.classes {
	Tx_Cdebayarticles_Domain_Model_Dam {
		className = Tx_Cdebayarticles_Domain_Model_Dam
		mapping {
			tableName = tx_dam
		}
	}
}

Then you could define recordTypes for singleTable inheritance (if needed).

-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list