modify plugin name

This commit is contained in:
2022-03-01 17:37:45 +08:00
parent cdec00038c
commit cbcad9e7c3
+3 -6
View File
@@ -544,8 +544,9 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, T
$dbConnection = $this->getConnection()->createCommand($sql, $param);
$lastId = $dbConnection->save();
$lastId = $this->setPrimary((int)$lastId, $param);
if ($this->isAutoIncrement()) {
$lastId = $this->setPrimary((int)$lastId, $param);
}
$this->setIsNowExample(false);
@@ -713,10 +714,6 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, T
$uassoc = array_intersect_assoc($this->_attributes, $this->_oldAttributes);
if (!$this->getIsNowExample()) {
var_dump($assoc, $uassoc);
}
return [$assoc, $uassoc, array_keys($assoc)];
}