joomla/joomla-platform — pull request #1361 by pasamio (2012-07-13 07:44:10+00:00)
Title: Build multi-key update support for JDatabaseDriver::updateObject.

This pull request provides support for providing an array as the key to the JDatabaseDriver::updateObject method. This permits updating objects where there is more than a single key for the given table. JDatabaseDriver::insertObject does not require this because it can directly insert without worrying about providing a where clause which is required for the update statement to work properly. This change is backwards compatible and will map the `$key` from a string to array if a string is provided. Support is also provided for re-mapping an object into an array for using objects as well for the key.