cakephp/cakephp — pull request #1392 by pafuinlu (2013-07-02 00:19:00+00:00)
Title: MySql DBO Source - Join Support For Update

This addition allows the `$conditions` param to contain the standard 'joins' array, and will, if provided, apply the joins to the update, allowing for more advanced usage if desired.

This enhancement doesn't change anything else, just the meaning of a 'joins' key in the `$conditions` array, which if sticking to standards isn't being used as a model or column name anyway. This makes for easy adaptation into and most likely no changes to any existing applications in order to use the enhanced datasource.

I'd like to continue this and add more support for `update()`. Adding other `find` keys into the `$conditions` param seems like a great place to start.

I'd love to hear other thoughts, was there a reason this function doesn't support all of this already?