Skip to content

Commit aef970a

Browse files
committed
- Insert: Fixed bug were excluded fields could kill the whole data array
1 parent c83ea18 commit aef970a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Builder/Insert.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ private function addAllTo(array $data, array $mask = null, array $excludeFields
227227
if($excludeFields !== null) {
228228
foreach($excludeFields as $excludeField) {
229229
if(array_key_exists($excludeField, $data)) {
230-
unset($data);
230+
unset($data[$excludeField]);
231231
}
232232
}
233233
}

0 commit comments

Comments
 (0)