[TYPO3-ttnews] tx_news update of record

Krystian Szymukowicz k.szymukowicz at gmail.com
Fri Feb 1 13:40:24 CET 2013


hi

I am fighting few hours now to make edit / update of news records. 

I ended with a test that works without a problem in other extbase extensions but do not work in "news". The testing code is simple and I put it into detailView of different extensions. Of course I am changing accordingly the repo class.

/** @var $repo Tx_News_Domain_Repository_NewsRepository */
        $repo = t3lib_div::makeInstance('Tx_News_Domain_Repository_NewsRepository');
        $news4 = $repo->findByUid(4);

        Tx_Extbase_Utility_Debugger::var_dump($news4);
        $news4->setTitle('foo');
        Tx_Extbase_Utility_Debugger::var_dump($news4);

        $repo->update($news4);
        $persistenceManager = t3lib_div::makeInstance('Tx_Extbase_Persistence_Manager');
        $persistenceManager->persistAll();

So this code works flawlessly in several extbase ext but not in "news".

Does anyone know why ?

Thanks for any info that can solve this issue.



More information about the TYPO3-project-tt-news mailing list