This commit is contained in:
xl
2023-07-10 11:26:35 +08:00
parent 1c07e59357
commit 203eda17ad
+1 -1
View File
@@ -197,7 +197,7 @@ class Model extends Base\Model
public function delete(): bool
{
if ($this->beforeDelete()) {
$result = static::deleteByCondition($this->_attributes);
$result = static::deleteByCondition($this->_attributes, $this->_attributes);
return $this->afterDelete($result);
} else {