[TYPO3-mvc] [Extbase] Object doesn't get initialized.

Franz Koch typo3.RemoveForMessage at elements-net.de
Tue Oct 19 00:30:46 CEST 2010


Hey,

...
> The configuration for the table mapping is:
>
> plugin.tx_myext {
> 	persistence {
> 		classes {
> 			Tx_MyExt_Domain_Model_User {
> 				mapping {
> 					tableName = fe_users
> 					recordType =
> Tx_MyExt_Domain_Model_User
> 				}
> 			}
> 		}
> 	}
> }
>
> Is there additional configuration necessary to get the 1:n related 'item'
> model from table 'tx_myext_domain_model_item' in?

IIRC you also need to register your subclass in the configuration of the 
base class like:

config.tx_extbase {
	persistence {
		classes {
			Tx_Extbase_Domain_Model_FrontendUser {
				subclasses {
					1 = Tx_Extbase_Domain_Model_FrontendUser
					2 = Tx_YourExt_Domain_Model_User
				}
			}
		}
	}
}

-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list