CakePHP 3.x update multiple rows

Adding hidden fields with name according to scheme and value= “id” help for me with “passing” to submit.
If I’m right your code works, but you want get it better/faster?
Think of transactional and atomic->false or get updateAll,Flash outside foreach, but i’m not familiar with updateAll().