Skip to content

Commit c5ed84d

Browse files
committed
refactor: fix property name
1 parent 3204a5a commit c5ed84d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

system/Model.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@ class Model extends BaseModel
119119
protected $escape = [];
120120

121121
/**
122-
* Primary Key data when inserting and useAutoIncrement is false.
122+
* Primary Key value when inserting and useAutoIncrement is false.
123123
*
124124
* @var int|string|null
125125
*/
126-
private $tempPrimaryKeyData;
126+
private $tempPrimaryKeyValue;
127127

128128
/**
129129
* Builder method names that should not be used in the Model.
@@ -271,10 +271,10 @@ protected function doInsert(array $data)
271271
$this->escape = [];
272272

273273
// If $useAutoIncrement is false, add the primary key data.
274-
if ($this->useAutoIncrement === false && $this->tempPrimaryKeyData !== null) {
275-
$data[$this->primaryKey] = $this->tempPrimaryKeyData;
274+
if ($this->useAutoIncrement === false && $this->tempPrimaryKeyValue !== null) {
275+
$data[$this->primaryKey] = $this->tempPrimaryKeyValue;
276276

277-
$this->tempPrimaryKeyData = null;
277+
$this->tempPrimaryKeyValue = null;
278278
}
279279

280280
// Require non-empty primaryKey when
@@ -676,7 +676,7 @@ public function insert($data = null, bool $returnID = true)
676676
}
677677

678678
if ($this->useAutoIncrement === false && isset($data[$this->primaryKey])) {
679-
$this->tempPrimaryKeyData = $data[$this->primaryKey];
679+
$this->tempPrimaryKeyValue = $data[$this->primaryKey];
680680
}
681681

682682
$this->escape = $this->tempData['escape'] ?? [];

0 commit comments

Comments
 (0)