This commit is contained in:
2021-01-12 19:42:51 +08:00
parent ecb903c452
commit c12ef86814
-3
View File
@@ -434,10 +434,7 @@ abstract class BaseActiveRecord extends Component implements IOrm, \ArrayAccess
return false;
}
$format = static::getColumns()->format();
$this->_attributes = array_merge($format, $this->_attributes);
static::getDb()->enablingTransactions();
[$attributes, $condition, $param] = $this->filtration_and_separation();
if (($primary = $this->getPrimary()) !== null) {
$condition = [$primary => $this->getPrimaryValue()];