/** * Mark a list item as done * * @param Item $item * @throws \TYPO3\Flow\Persistence\Exception\IllegalObjectTypeException */ public function doAction(Item $item) { $item->markAsDone(); $this->itemRepository->update($item); $this->view->assign('value', array('type' => 'success:do', 'entity' => get_class($item))); }