From acb117738ddb28ea7fc6a2029cf1d0d06c4b2b57 Mon Sep 17 00:00:00 2001 From: Mohamed Said Date: Tue, 16 Mar 2021 19:05:22 +0200 Subject: [PATCH] [8.x] Add DB::resetRecordsModifications (#36617) * add DB::resetRecordsModifications * Update Connection.php Co-authored-by: Taylor Otwell --- src/Illuminate/Database/Connection.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Illuminate/Database/Connection.php b/src/Illuminate/Database/Connection.php index b4fa6d4c3a0d..b2ded4c9aebb 100755 --- a/src/Illuminate/Database/Connection.php +++ b/src/Illuminate/Database/Connection.php @@ -867,6 +867,16 @@ public function recordsHaveBeenModified($value = true) } } + /** + * Reset the record modification state. + * + * @return void + */ + public function forgetRecordModificationState() + { + $this->recordsModified = false; + } + /** * Is Doctrine available? *