[TYPO3-mvc] Domain Model when field contains underscore

Jochen Rau jochen.rau at typoplanet.de
Wed Mar 17 14:47:07 CET 2010


Hi Søren.

On 16.03.10 14:12, Søren Malling wrote:
> 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?

The default is like Oliver described. Fieldname foo_bar -> Propertyname 
fooBar.

If you want to use fooBar as field name (or bazboom) you have to define 
a mapping rule. See ext_typoscript_setup.txt of extbase how this is done.

regards
Jochen


More information about the TYPO3-project-typo3v4mvc mailing list