cakephp/cakephp — pull request #1360 by markstory (2013-06-18 03:35:11+00:00)
Title: 3.0 table update

Add basic table level updates that can update multiple records. I've intentionally skipped implementing `_matchRecords` or other join workarounds as they often lead to concurrency issues. Joins are still possible using the query builder, but need to be expressed more manually. We can revisit updates with joins later on if necessary.

I've also opted to have Table::update() properly escape its inputs by default. Both Model::updateAll and Model::deleteAll can have surprising behavior in 2.x for many developers. Escaping by default is a safer/more sensible default. People needing raw query expressions can use the query builder to do that in 3.x