modify plugin name
This commit is contained in:
+3
-6
@@ -544,8 +544,9 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, T
|
|||||||
$dbConnection = $this->getConnection()->createCommand($sql, $param);
|
$dbConnection = $this->getConnection()->createCommand($sql, $param);
|
||||||
|
|
||||||
$lastId = $dbConnection->save();
|
$lastId = $dbConnection->save();
|
||||||
|
if ($this->isAutoIncrement()) {
|
||||||
$lastId = $this->setPrimary((int)$lastId, $param);
|
$lastId = $this->setPrimary((int)$lastId, $param);
|
||||||
|
}
|
||||||
|
|
||||||
$this->setIsNowExample(false);
|
$this->setIsNowExample(false);
|
||||||
|
|
||||||
@@ -713,10 +714,6 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, T
|
|||||||
|
|
||||||
$uassoc = array_intersect_assoc($this->_attributes, $this->_oldAttributes);
|
$uassoc = array_intersect_assoc($this->_attributes, $this->_oldAttributes);
|
||||||
|
|
||||||
if (!$this->getIsNowExample()) {
|
|
||||||
var_dump($assoc, $uassoc);
|
|
||||||
}
|
|
||||||
|
|
||||||
return [$assoc, $uassoc, array_keys($assoc)];
|
return [$assoc, $uassoc, array_keys($assoc)];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user