fix delete

This commit is contained in:
evgen-d 2014-08-12 12:05:30 +04:00
parent 17dd5e18d3
commit 9c044353d0

View File

@ -364,7 +364,7 @@ abstract class ActiveRecord extends BaseActiveRecord
*/
protected function deleteInternal()
{
$condition = $this->getOldPrimaryKey();
$condition = $this->getOldPrimaryKey(true);
$lock = $this->optimisticLock();
if ($lock !== null) {
$condition[$lock] = $this->$lock;