[TYPO3-mvc] temporary set does db update?

Peter Niederlag typo3-list at niekom.de
Wed Dec 14 12:28:55 CET 2011


Hello,

Am 14.12.2011 10:12, schrieb Ralph Germershausen:
> ok. this seems to be the solution:
> http://www.dinse-software.de/2011/09/automatisches-persistieren-in-extbase/

If you just want a fallback or override when reading a property you
should instead just add a proper getWhatEver() method in your model.

getWhatEver() {
 if this return this
 elseif that return that
 else return this . that
}

now you can easily use {foo.whatEver} in fluid, this should also work
with optionlabelField, also I haven't tested that yet.

Greets and hth,
Peter
-- 
Peter Niederlag
http://www.niekom.de * TYPO3 & EDV Dienstleistungen *


More information about the TYPO3-project-typo3v4mvc mailing list