[TYPO3-mvc] Tx_Extbase_MVC_Exception_InfiniteLoop - again

Jochen Rau jochen.rau at typoplanet.de
Thu May 6 11:03:07 CEST 2010


Hi Thilo.

On 06.05.10 10:48, Thilo Schneider wrote:
> Hi Berhhard,
>
> thank you for your input!
> The reason I did it that way I that I generate quite a lot of
> information that are strored in the class afterwards. In fact, what the
> action is doing you could quite well call auto-completion. So I create
> complete timestamps out of the files "hour", "date" and "minute". If
> some of these values are not set, the actions does automatically fill
> them up with a best guess (so, consider there is no minute-information
> filled in, it is quite a good guess that the user meant a full hour.)
>
> If there is a way to create this behaivour using the standard extbase
> handling, I will greatfully adapt it. However, my current solution at
> least acts as desired ;)

Maybe you could implement this logic in the getter and store the 
"original" data in the class. The advantage of this solution  -- besides 
the convenient property mapping of extbase -- is, that you can process 
the original data again if your algorithm of "the best guess" changes.

In FLOW3 you can have a Factory for a Domain Model. But we should leave 
some nice features to FLOW3. ;-)

Regards
Jochen


More information about the TYPO3-project-typo3v4mvc mailing list