/**
* Get expressions for a WHERE clause
* based on the primary key value(s).
*/
$where =
$this->
_getWhereQuery(false
);
/**
* Run pre-UPDATE logic
*/
$this->
_update();
/**
* Compare the data to the modified fields array to discover
* which columns have been changed.
*/
$diffData =
array_intersect_key($this->_data,
$this->_modifiedFields
);
/**
* Were any of the changed columns part of the primary key?
*/
$pkDiffData =
array_intersect_key($diffData,
array_flip((array)$this->_primary
));