eee
This commit is contained in:
+1
-1
@@ -464,7 +464,7 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, \
|
||||
if ($generate === false) {
|
||||
return false;
|
||||
}
|
||||
if (!$this->getConnection()->createCommand($generate, $query->params)->save()) {
|
||||
if (!$this->getConnection()->createCommand($generate, $query->params)->exec()) {
|
||||
return FALSE;
|
||||
}
|
||||
return $this->refresh()->afterSave($old, $change);
|
||||
|
||||
@@ -47,15 +47,6 @@ class Command extends Component
|
||||
return (bool)$this->_prepare();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
* @throws
|
||||
*/
|
||||
public function save(): bool
|
||||
{
|
||||
return (bool)$this->_prepare();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return bool|array
|
||||
|
||||
Reference in New Issue
Block a user