Skip to content

Commit acb1177

Browse files
[8.x] Add DB::resetRecordsModifications (#36617)
* add DB::resetRecordsModifications * Update Connection.php Co-authored-by: Taylor Otwell <[email protected]>
1 parent 03efea9 commit acb1177

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Illuminate/Database/Connection.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -867,6 +867,16 @@ public function recordsHaveBeenModified($value = true)
867867
}
868868
}
869869

870+
/**
871+
* Reset the record modification state.
872+
*
873+
* @return void
874+
*/
875+
public function forgetRecordModificationState()
876+
{
877+
$this->recordsModified = false;
878+
}
879+
870880
/**
871881
* Is Doctrine available?
872882
*

0 commit comments

Comments
 (0)