[TYPO3-mvc] model properties?

Jochen Rau jochen.rau at typoplanet.de
Wed Apr 21 10:49:17 CEST 2010


Hi Daniel.

On 21.04.10 10:42, Daniel Dimitrov wrote:
> hey Soren,
> Hm this means that I have to change the field short_description in the
> database too.
> Afte few tests:
> short_description and shortDescription are not accepted.
>
> only shortdescription is a valid database field that can be
> automatically understood from extabase.
> Isn't this a little too restrictive?

The naming conventions are: lowerCamelCase for properties and 
lowercase_underscore for fiueld names. Extbase converts the names 
automatically. So: "short_description" in the table matches 
"shortDescription" in the class witghout any further configuration.

Regards
Jochen


More information about the TYPO3-project-typo3v4mvc mailing list