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;