[TYPO3-dev] Repository doesn't save at updateAction

M S ms at ipandmore.de
Thu Mar 3 15:36:13 CET 2016


Hi all,

i am trying to edit an object but it doesn't save my changes at updateAction. Can someone help me with this?

/**
 * action edit
 *
 * @param \voiceRec\voiceRec\Domain\Model\Voicerecording $voicerecording
 * @ignorevalidation $voicerecording
 * @return void
 */
public function editAction(\voiceRec\voiceRec\Domain\Model\Voicerecording $voicerecording) {
    $this->view->assign('voicerecording', $voicerecording);
}

/**
 * action update
 *
 * @param \voiceRec\voiceRec\Domain\Model\Voicerecording $voicerecording
 * @return void
 */
public function updateAction(\voiceRec\voiceRec\Domain\Model\Voicerecording $voicerecording) {
    $voicerecording->setCommentator('test');
    $this->repositoryService->get('Voicerecording')->update($voicerecording);
    $this->redirect($_REQUEST['backAction'], $_REQUEST['backController'], $_REQUEST['backExtension'], $arguments);
}

-- 
Kind regards,
Michael

forum.typo3.org/index.php?t=tree&th=208338 direct_mail
forum.typo3.org/index.php?t=tree&th=210808 powermail
forum.typo3.org/index.php?t=tree&th=212804 Core
forum.typo3.org/index.php?t=tree&th=213115 clickenlarge



More information about the TYPO3-dev mailing list