yiisoft/yii — pull request #3631 by georaldc (2014-11-13 23:53:19+00:00)
Title: Fix for #3555

CActiveRecord::_pk should only be updated if the primary key was included
as part of the attributes passed to CActiveRecord::update().

This should also fix the value returned by CActiveRecord::getOldPrimaryKey() when using the update method, without passing the primary key.