File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -119,11 +119,11 @@ class Model extends BaseModel
119
119
protected $ escape = [];
120
120
121
121
/**
122
- * Primary Key data when inserting and useAutoIncrement is false.
122
+ * Primary Key value when inserting and useAutoIncrement is false.
123
123
*
124
124
* @var int|string|null
125
125
*/
126
- private $ tempPrimaryKeyData ;
126
+ private $ tempPrimaryKeyValue ;
127
127
128
128
/**
129
129
* Builder method names that should not be used in the Model.
@@ -271,10 +271,10 @@ protected function doInsert(array $data)
271
271
$ this ->escape = [];
272
272
273
273
// 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 ;
276
276
277
- $ this ->tempPrimaryKeyData = null ;
277
+ $ this ->tempPrimaryKeyValue = null ;
278
278
}
279
279
280
280
// Require non-empty primaryKey when
@@ -676,7 +676,7 @@ public function insert($data = null, bool $returnID = true)
676
676
}
677
677
678
678
if ($ this ->useAutoIncrement === false && isset ($ data [$ this ->primaryKey ])) {
679
- $ this ->tempPrimaryKeyData = $ data [$ this ->primaryKey ];
679
+ $ this ->tempPrimaryKeyValue = $ data [$ this ->primaryKey ];
680
680
}
681
681
682
682
$ this ->escape = $ this ->tempData ['escape ' ] ?? [];
You can’t perform that action at this time.
0 commit comments