[TYPO3-mvc] When do things actually get written to the database?

Nikolas Hagelstein lists at shr-now.de
Tue Jul 21 09:54:37 CEST 2009


Hi,

>I stumbled over a few typos:
Nevermind I type this sample down without checking for errors just to
simplify my sample.

>I don't know what is stored in $items?
>So, I am not really sure if this is a bug. May you please do some 
>further testing and reporting?

Perhaps i gotta explain the purpose of this controller in detail:
It fetch's a list of "Items" (records) belonging to the current user and
displays it in a list.
Within the view each list item has a corresponding checkbox.
If it's checked and submit is hit the controller action changes it's state
(e.g. to 'somethingelse')
and it shouldn't be displayed within the list anymore.
(The list displays findByState('something').

I'll do everything within one controller. Which is obviously the problem,
because the record gets update after find('something').
Would moving the "update code" to a separate action and perfoming of a
forward subsequently solve this issue?

Cheers,
Nikolas





More information about the TYPO3-project-typo3v4mvc mailing list