From ee1e6b4db76ff11505deb9e5faba3a04de424e97 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 8 Jun 2021 14:10:51 -0500 Subject: [PATCH] add setter for record modification state --- src/Illuminate/Database/Connection.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/Illuminate/Database/Connection.php b/src/Illuminate/Database/Connection.php index 24bd64e375ae..be9656660348 100755 --- a/src/Illuminate/Database/Connection.php +++ b/src/Illuminate/Database/Connection.php @@ -891,6 +891,19 @@ public function recordsHaveBeenModified($value = true) } } + /** + * Set the record modification state. + * + * @param bool $value + * @return $this + */ + public function setRecordModificationState(bool $value) + { + $this->recordsModified = $value; + + return $this; + } + /** * Reset the record modification state. *