From 9c044353d09cc1ec25dac108fc1d9aef8bf52465 Mon Sep 17 00:00:00 2001 From: evgen-d Date: Tue, 12 Aug 2014 12:05:30 +0400 Subject: [PATCH] fix delete --- ActiveRecord.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ActiveRecord.php b/ActiveRecord.php index 9f7c07b..2937437 100644 --- a/ActiveRecord.php +++ b/ActiveRecord.php @@ -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;