[TYPO3-mvc] Domain Model when field contains underscore

Franz Koch typo3.RemoveForMessage at elements-net.de
Tue Mar 16 14:25:03 CET 2010


Hi,

> How should i write the Domain Model for a table where the field names
> contains "_"? Or is the underscore "forbidden" and should camel case
> be used instead?

AFAIK you should avoid underscores in your tablename suffix. So instead of:
tx_yourext_domain_model_my_fancy_name

use:
tx_yourext_domain_model_myfancyname


The mapping of that table name to a model named 
Tx_YourExt_Domain_Model_MyFancyName can then be done via TS in the 
persistence configuration of your extension.
-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list