I have a NewsRepository and a News model. The storagePid is 74. I have a script which checks if the endtime field of the new record is overdue. If it is, I want to move the record in another folder (UID 170).
When I do:
$news = $newsRepository->findByUid( 1 ); $news->setTitle( 'News ' . rand(1,99999) ); $news->setPid( 170 ); $newsRepository->update( $news );
The title is changed, but the PID is not.
So, how can I move the new onto another page?