[TYPO3-mvc] extbase: pass array of models to an action for mass update?
    Patrick Schriner 
    patrick.schriner at diemedialen.de
       
    Wed Jul 24 13:12:16 CEST 2013
    
    
  
On Wed, 24 Jul 2013 12:49:50 +0200, Philipp <philippwrann at gmx.at> wrote:
> 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.
This is no longer correct for >= 6.1 - you have to call persistAll  
explicitly (though only once, in the end).
>
> Thats about 20 lines of code...
-- 
Patrick Schriner
    
    
More information about the TYPO3-project-typo3v4mvc
mailing list