[TYPO3-mvc] extbase: pass array of models to an action for mass update?

Philipp philippwrann at gmx.at
Wed Jul 24 12:49:50 CEST 2013


I think you would have to handle this with an array as ActionArgument holding the uids of your records and their labels, then load all records from the repo, create a findByUidList method for that case, where you perform a select-in-query, iterate over them, set the title, update the record and persist the changes. As far as i know you dont have to call the persistenceManager to persist the alterations when called the update method - as the repo automatically persists all updated models.

Thats about 20 lines of code...


More information about the TYPO3-project-typo3v4mvc mailing list