[TYPO3-mvc] getter/setter generation

Xavier Perseguers typo3 at perseguers.ch
Tue Jul 14 17:54:32 CEST 2009


Hi Nikolas,

> is anyone aware of a nutility (eclipse base preferred) that generates
> getter/setter from a database table or a SQL creation statement?

No but it could be relatively easily (at least as a 1st approximation) 
with a script.

> BTW: how do you guys handle large domain objects? Using getter/setter or
> just set every flat property to public?

Using getter/setter because 1) it is then handled by Extbase and more 
important 2) it's the way to go as it allows the getter / setter to have 
additional logic or control over what actually is put / retrieved from a 
protected field.

-- 
Xavier Perseguers
http://xavier.perseguers.ch/en

One contribution a day keeps the fork away


More information about the TYPO3-project-typo3v4mvc mailing list