modify plugin name

This commit is contained in:
2022-02-23 11:01:19 +08:00
parent 17316250a9
commit ecb63ff136
+1 -1
View File
@@ -209,7 +209,7 @@ class Model extends Base\Model
if (empty($primary) || !$this->hasPrimaryValue()) { if (empty($primary) || !$this->hasPrimaryValue()) {
return $this->addError("Only primary key operations are supported.", 'mysql'); return $this->addError("Only primary key operations are supported.", 'mysql');
} }
if (!$this->beforeDelete()) { if ($this->beforeDelete()) {
$result = static::deleteByCondition([$primary => $this->getPrimaryValue()]); $result = static::deleteByCondition([$primary => $this->getPrimaryValue()]);
Coroutine::create(function () use ($result) { Coroutine::create(function () use ($result) {
$this->afterDelete($result); $this->afterDelete($result);