This commit is contained in:
2021-02-24 19:01:07 +08:00
parent 8ca6ab24b5
commit ceefff70b7
+1 -1
View File
@@ -502,7 +502,7 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
static::getDb()->enablingTransactions();
[$attributes, $condition, $param] = $this->filtration_and_separation();
if (($primary = $this->getPrimary()) !== null) {
$condition = [$primary => $this->getPrimaryValue()];
$condition = [[$primary => $this->getPrimaryValue()]];
}
if (!$this->isNewExample) {